nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 pythonAtLeast,
8}:
9
10buildPythonPackage rec {
11 pname = "backports-strenum";
12 version = "1.3.1";
13 pyproject = true;
14
15 disabled = pythonAtLeast "3.11";
16
17 src = fetchFromGitHub {
18 owner = "clbarnes";
19 repo = "backports.strenum";
20 tag = "v${version}";
21 hash = "sha256-j5tALFrLeZ8k+GwAaq0ocmcQWvdWkRUHbOVq5Du4mu0=";
22 };
23
24 build-system = [ poetry-core ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "backports.strenum" ];
29
30 meta = {
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 lib.licenses; [ psfl ];
34 maintainers = with lib.maintainers; [ fab ];
35 };
36}