diff --git a/pkgs/development/python-modules/threadpool/default.nix b/pkgs/development/python-modules/threadpool/default.nix new file mode 100644 index 00000000000..b3d7f58c66d --- /dev/null +++ b/pkgs/development/python-modules/threadpool/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "threadpool"; + version = "1.3.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "197gzrxn9lbk0q1v079814c6s05cr4rwzyl6c1m6inkyif4yzr6c"; + }; + + meta = with stdenv.lib; { + homepage = http://chrisarndt.de/projects/threadpool/; + description = "Easy to use object-oriented thread pool framework"; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 057d74dc65e..8852bc68b22 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4597,15 +4597,7 @@ in { tvnamer = callPackage ../development/python-modules/tvnamer { }; - threadpool = buildPythonPackage rec { - name = "threadpool-${version}"; - version = "1.3.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/t/threadpool/${name}.tar.bz2"; - sha256 = "197gzrxn9lbk0q1v079814c6s05cr4rwzyl6c1m6inkyif4yzr6c"; - }; - }; + threadpool = callPackage ../development/python-modules/threadpool { }; rocket-errbot = callPackage ../development/python-modules/rocket-errbot { };