pythonPackages.argh: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 09:47:07 -04:00
parent 28d2a28d95
commit 27648d41f0
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 34 additions and 19 deletions

View File

@ -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 ];
};
}

View File

@ -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";