at 23.11-beta 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pyparsing 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "aenum"; 11 version = "3.1.15"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-jL12zRjE+HD/ObJChNPqAo++hzGljfOqWB5DTFdblVk="; 19 }; 20 21 nativeCheckInputs = [ 22 pyparsing 23 pytestCheckHook 24 ]; 25 26 pythonImportsCheck = [ 27 "aenum" 28 ]; 29 30 disabledTests = [ 31 # https://github.com/ethanfurman/aenum/issues/27 32 "test_class_nested_enum_and_pickle_protocol_four" 33 "test_pickle_enum_function_with_qualname" 34 "test_stdlib_inheritence" 35 "test_subclasses_with_getnewargs_ex" 36 "test_arduino_headers" 37 "test_c_header_scanner" 38 "test_extend_flag_backwards_stdlib" 39 ]; 40 41 meta = with lib; { 42 description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants"; 43 homepage = "https://github.com/ethanfurman/aenum"; 44 license = licenses.bsd3; 45 maintainers = with maintainers; [ vrthra ]; 46 }; 47}