pythonPackages.namedlist: init at 1.7
This commit is contained in:
parent
3a5dbfd681
commit
9295ffbf8e
33
pkgs/development/python-modules/namedlist/default.nix
Normal file
33
pkgs/development/python-modules/namedlist/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pytest
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "namedlist";
|
||||||
|
version = "1.7";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "11n9c4a5ak9971awkf1g92m6mcmiprhrw98ik2cmjsqxmz73j2qr";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Test file has a `unittest.main()` at the bottom that fails the tests;
|
||||||
|
# py.test can run the tests without it.
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace test/test_namedlist.py --replace "unittest.main()" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ pytest ];
|
||||||
|
checkPhase = ''
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Similar to namedtuple, but instances are mutable";
|
||||||
|
homepage = https://bitbucket.org/ericvsmith/namedlist;
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = with lib.maintainers; [ ivan ];
|
||||||
|
};
|
||||||
|
}
|
@ -3076,6 +3076,8 @@ in {
|
|||||||
|
|
||||||
namebench = callPackage ../development/python-modules/namebench { };
|
namebench = callPackage ../development/python-modules/namebench { };
|
||||||
|
|
||||||
|
namedlist = callPackage ../development/python-modules/namedlist { };
|
||||||
|
|
||||||
nameparser = callPackage ../development/python-modules/nameparser { };
|
nameparser = callPackage ../development/python-modules/nameparser { };
|
||||||
|
|
||||||
nbconvert = callPackage ../development/python-modules/nbconvert { };
|
nbconvert = callPackage ../development/python-modules/nbconvert { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user