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