at 23.05-pre 802 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, pyparsing 6, python 7}: 8 9buildPythonPackage rec { 10 pname = "aenum"; 11 version = "3.1.11"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-rtLCc1R65yoNXuhpcZwCpkPaFr9QfICVj6rcfgOOP3M="; 17 }; 18 19 checkInputs = [ 20 pyparsing 21 ]; 22 23 # py2 likes to reorder tests 24 doCheck = isPy3k; 25 26 checkPhase = '' 27 runHook preCheck 28 ${python.interpreter} aenum/test.py 29 runHook postCheck 30 ''; 31 32 pythonImportsCheck = [ 33 "aenum" 34 ]; 35 36 meta = with lib; { 37 description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants"; 38 homepage = "https://github.com/ethanfurman/aenum"; 39 license = licenses.bsd3; 40 maintainers = with maintainers; [ vrthra ]; 41 }; 42}