1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-29 04:26:32 +03:00
nixpkgs/pkgs/development/python-modules/aenum/default.nix

40 lines
784 B
Nix
Raw Normal View History

2021-06-01 13:24:42 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pyparsing
, python
}:
2017-02-11 16:12:10 -08:00
buildPythonPackage rec {
pname = "aenum";
2021-11-02 09:50:38 +00:00
version = "3.1.2";
2017-02-11 16:12:10 -08:00
src = fetchPypi {
inherit pname version;
2021-11-02 09:50:38 +00:00
sha256 = "806dd4791298e19daff2cdfe7be3ae6d931d0d03097973f802b3ea55066f62dd";
2017-02-11 16:12:10 -08:00
};
2021-06-01 13:24:42 +02:00
checkInputs = [
pyparsing
] ;
# py2 likes to reorder tests
doCheck = isPy3k;
2021-06-01 13:24:42 +02:00
checkPhase = ''
2021-06-01 13:24:42 +02:00
runHook preCheck
${python.interpreter} aenum/test.py
runHook postCheck
'';
2021-06-01 13:24:42 +02:00
pythonImportsCheck = [ "aenum" ];
meta = with lib; {
2017-02-11 16:12:10 -08: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-11 16:12:10 -08:00
};
}