11 buildPythonPackage rec {
12 pname = "backports-strenum";
16 disabled = pythonOlder "3.8" || pythonAtLeast "3.11";
18 src = fetchFromGitHub {
20 repo = "backports.strenum";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-j5tALFrLeZ8k+GwAaq0ocmcQWvdWkRUHbOVq5Du4mu0=";
25 build-system = [ poetry-core ];
27 nativeCheckInputs = [ pytestCheckHook ];
29 pythonImportsCheck = [ "backports.strenum" ];
32 description = "Base class for creating enumerated constants that are also subclasses of str";
33 homepage = "https://github.com/clbarnes/backports.strenum";
34 license = with licenses; [ psfl ];
35 maintainers = with maintainers; [ fab ];