diff --git a/pkgs/development/python-modules/clize/default.nix b/pkgs/development/python-modules/clize/default.nix new file mode 100644 index 000000000000..8456f8d473b5 --- /dev/null +++ b/pkgs/development/python-modules/clize/default.nix @@ -0,0 +1,26 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, dateutil +, sigtools +}: + +buildPythonPackage rec { + pname = "clize"; + version = "3.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1xkr3h404d7pgj5gdpg6bddv3v3yq2hgx8qlwkgw5abg218k53hm"; + }; + + buildInputs = [ dateutil ]; + propagatedBuildInputs = [ sigtools ]; + + meta = with stdenv.lib; { + description = "Command-line argument parsing for Python"; + homepage = "https://github.com/epsy/clize"; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 27cab50751af..0d8bada4f732 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4563,28 +4563,7 @@ in { sigtools = callPackage ../development/python-modules/sigtools { }; - clize = buildPythonPackage rec { - name = "clize-${version}"; - version = "3.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/c/clize/${name}.tar.gz"; - sha256 = "1xkr3h404d7pgj5gdpg6bddv3v3yq2hgx8qlwkgw5abg218k53hm"; - }; - - buildInputs = with self; [ - dateutil - ]; - propagatedBuildInputs = with self; [ - sigtools - ]; - - meta = { - description = "Command-line argument parsing for Python"; - homepage = "https://github.com/epsy/clize"; - license = licenses.mit; - }; - }; + clize = callPackage ../development/python-modules/clize { }; zerobin = buildPythonPackage rec { name = "zerobin-${version}";