2021-06-01 11:24:42 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyparsing
|
2023-01-27 09:55:15 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-06-01 11:24:42 +00:00
|
|
|
}:
|
2017-02-12 00:12:10 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aenum";
|
2022-04-17 08:30:20 +00:00
|
|
|
version = "3.1.11";
|
2021-11-09 07:44:57 +00:00
|
|
|
format = "setuptools";
|
2017-02-12 00:12:10 +00:00
|
|
|
|
2023-01-27 09:55:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2017-02-12 00:12:10 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-27 09:55:15 +00:00
|
|
|
hash = "sha256-rtLCc1R65yoNXuhpcZwCpkPaFr9QfICVj6rcfgOOP3M=";
|
2017-02-12 00:12:10 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-01 11:24:42 +00:00
|
|
|
pyparsing
|
2023-01-27 09:55:15 +00:00
|
|
|
pytestCheckHook
|
2021-11-09 07:44:57 +00:00
|
|
|
];
|
2018-01-16 09:40:40 +00:00
|
|
|
|
2021-11-09 07:44:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aenum"
|
|
|
|
];
|
2021-06-01 11:24:42 +00:00
|
|
|
|
2023-01-27 09:55:15 +00:00
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/ethanfurman/aenum/issues/27
|
|
|
|
"test_class_nested_enum_and_pickle_protocol_four"
|
|
|
|
"test_pickle_enum_function_with_qualname"
|
|
|
|
"test_stdlib_inheritence"
|
|
|
|
"test_subclasses_with_getnewargs_ex"
|
|
|
|
"test_arduino_headers"
|
|
|
|
"test_c_header_scanner"
|
|
|
|
"test_extend_flag_backwards_stdlib"
|
|
|
|
];
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
meta = with lib; {
|
2017-02-12 00:12:10 +00:00
|
|
|
description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants";
|
2020-12-29 23:12:36 +00:00
|
|
|
homepage = "https://github.com/ethanfurman/aenum";
|
2021-11-09 07:44:57 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2017-02-12 00:12:10 +00:00
|
|
|
};
|
|
|
|
}
|