3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/aenum/default.nix

40 lines
771 B
Nix
Raw Normal View History

2021-06-01 12:24:42 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pyparsing
, python
}:
2017-02-12 00:12:10 +00:00
buildPythonPackage rec {
pname = "aenum";
2021-06-01 12:24:42 +01:00
version = "3.1.0";
2017-02-12 00:12:10 +00:00
src = fetchPypi {
inherit pname version;
2021-06-01 12:24:42 +01:00
sha256 = "sha256-h/Dp70+ChXirBq8w5NeUQEO/Ts0/S3vRy+N+IXPN6Uo=";
2017-02-12 00:12:10 +00:00
};
2021-06-01 12:24:42 +01:00
checkInputs = [
pyparsing
] ;
# py2 likes to reorder tests
doCheck = isPy3k;
2021-06-01 12:24:42 +01:00
checkPhase = ''
2021-06-01 12:24:42 +01:00
runHook preCheck
${python.interpreter} aenum/test.py
runHook postCheck
'';
2021-06-01 12:24:42 +01:00
pythonImportsCheck = [ "aenum" ];
meta = with lib; {
2017-02-12 00:12:10 +00:00
description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants";
maintainers = with maintainers; [ vrthra ];
license = licenses.bsd3;
homepage = "https://github.com/ethanfurman/aenum";
2017-02-12 00:12:10 +00:00
};
}