depot/third_party/nixpkgs/pkgs/development/python-modules/aenum/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

47 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pyparsing
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aenum";
version = "3.1.12";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-PlMckYYKgfiF9+bpfSGa6XcsuJlYAIR4iTXa19l0LvA=";
};
nativeCheckInputs = [
pyparsing
pytestCheckHook
];
pythonImportsCheck = [
"aenum"
];
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"
];
meta = with lib; {
description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants";
homepage = "https://github.com/ethanfurman/aenum";
license = licenses.bsd3;
maintainers = with maintainers; [ vrthra ];
};
}