diff --git a/pkgs/development/python-modules/argh/default.nix b/pkgs/development/python-modules/argh/default.nix new file mode 100644 index 00000000000..04508b3cc1e --- /dev/null +++ b/pkgs/development/python-modules/argh/default.nix @@ -0,0 +1,33 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pytest +, py +, mock +, pkgs +}: + +buildPythonPackage rec { + pname = "argh"; + version = "0.26.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1nqham81ihffc9xmw85dz3rg3v90rw7h0dp3dy0bh3qkp4n499q6"; + }; + + buildInputs = [ pytest py mock pkgs.glibcLocales ]; + + checkPhase = '' + export LANG="en_US.UTF-8" + py.test + ''; + + meta = with stdenv.lib; { + homepage = http://github.com/neithere/argh/; + description = "An unobtrusive argparse wrapper with natural syntax"; + license = licenses.lgpl2; + maintainers = with maintainers; [ domenkozar ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 20e41b37102..5bea3b04787 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3811,25 +3811,7 @@ in { clint = callPackage ../development/python-modules/clint { }; - argh = buildPythonPackage rec { - name = "argh-0.26.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/a/argh/${name}.tar.gz"; - sha256 = "1nqham81ihffc9xmw85dz3rg3v90rw7h0dp3dy0bh3qkp4n499q6"; - }; - - checkPhase = '' - export LANG="en_US.UTF-8" - py.test - ''; - - buildInputs = with self; [ pytest py mock pkgs.glibcLocales ]; - - meta = { - maintainers = with maintainers; [ domenkozar ]; - }; - }; + argh = callPackage ../development/python-modules/argh { }; nose_progressive = buildPythonPackage rec { name = "nose-progressive-1.5.1";