blob: 489c6db49cd178cb0231aa5a6e93a2684d47e452 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "backports-strenum";
version = "1.3.1";
pyproject = true;
disabled = pythonAtLeast "3.11";
src = fetchFromGitHub {
owner = "clbarnes";
repo = "backports.strenum";
tag = "v${version}";
hash = "sha256-j5tALFrLeZ8k+GwAaq0ocmcQWvdWkRUHbOVq5Du4mu0=";
};
build-system = [ poetry-core ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "backports.strenum" ];
meta = {
description = "Base class for creating enumerated constants that are also subclasses of str";
homepage = "https://github.com/clbarnes/backports.strenum";
license = lib.licenses.psfl;
maintainers = with lib.maintainers; [ fab ];
};
}
|