nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pyparsing, 6 pytestCheckHook, 7 pythonAtLeast, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "aenum"; 13 version = "3.1.16"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-v6+Vib20GO46mG2FdQxzGNnSg5wbGh1v6PxT7CAc8UA="; 19 }; 20 21 nativeBuildInputs = [ setuptools ]; 22 23 nativeCheckInputs = [ 24 pyparsing 25 pytestCheckHook 26 ]; 27 28 pythonImportsCheck = [ "aenum" ]; 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 ++ lib.optionals (pythonAtLeast "3.12") [ 41 # AttributeError: <enum 'Color'> has no attribute 'value'. Did you mean: 'blue'? 42 "test_extend_enum_shadow_property_stdlib" 43 ]; 44 45 meta = { 46 description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants"; 47 homepage = "https://github.com/ethanfurman/aenum"; 48 license = lib.licenses.bsd3; 49 maintainers = [ ]; 50 }; 51}