diff --git a/pkgs/development/python-modules/timeout-decorator/default.nix b/pkgs/development/python-modules/timeout-decorator/default.nix new file mode 100644 index 00000000000..342531ab976 --- /dev/null +++ b/pkgs/development/python-modules/timeout-decorator/default.nix @@ -0,0 +1,16 @@ +{ stdenv, buildPythonPackage, fetchPypi }: +buildPythonPackage rec { + pname = "timeout-decorator"; + version = "0.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1bckwbi5078z3x9lyf8vl9dhx10nymwwnp46c98wm5m02x5j37g4"; + }; + + meta = with stdenv.lib; { + description = "Timeout decorator"; + license = licenses.mit; + homepage = https://github.com/pnpnpn/timeout-decorator; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1e7acc65635..3e5d663b88c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13034,15 +13034,7 @@ in { }; }; - timeout-decorator = buildPythonPackage rec { - name = "timeout-decorator-${version}"; - version = "0.3.2"; - - src = pkgs.fetchurl { - url = "http://pypi.python.org/packages/source/t/timeout-decorator/${name}.tar.gz"; - sha256 = "1x9l8bwdk72if2d5h5mi4lcaidbsmyh0iz114cfyyj1rzz5rxqaf"; - }; - }; + timeout-decorator = callPackage ../development/python-modules/timeout-decorator { }; pid = buildPythonPackage rec { name = "pid-${version}";