pythonPackages.argh: refactor move to python-modules
This commit is contained in:
parent
28d2a28d95
commit
27648d41f0
33
pkgs/development/python-modules/argh/default.nix
Normal file
33
pkgs/development/python-modules/argh/default.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user