diff --git a/pkgs/development/python-modules/tmdb3/default.nix b/pkgs/development/python-modules/tmdb3/default.nix new file mode 100644 index 000000000000..0c71b9b69526 --- /dev/null +++ b/pkgs/development/python-modules/tmdb3/default.nix @@ -0,0 +1,18 @@ +{ lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "tmdb3"; + version = "0.6.17"; + + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "64a6c3f1a60a9d8bf18f96a5403f3735b334040345ac3646064931c209720972"; + }; + + meta = with lib; { + description = "Python implementation of the v3 API for TheMovieDB.org, allowing access to movie and cast information"; + homepage = https://pypi.python.org/pypi/tmdb3; + license = licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ddd47b9a882b..887001598f86 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16915,21 +16915,7 @@ in { }; }; - tmdb3 = buildPythonPackage rec { - name = "tmdb3-${version}"; - version = "0.6.17"; - - src = pkgs.fetchurl { - url = "mirror://pypi/t/tmdb3/${name}.zip"; - sha256 = "64a6c3f1a60a9d8bf18f96a5403f3735b334040345ac3646064931c209720972"; - }; - - meta = { - description = "Python implementation of the v3 API for TheMovieDB.org, allowing access to movie and cast information"; - homepage = https://pypi.python.org/pypi/tmdb3; - license = licenses.bsd3; - }; - }; + tmdb3 = callPackage ../development/python-modules/tmdb3 { }; toolz = callPackage ../development/python-modules/toolz { };