mediawiki: 1.42.4 -> 1.43.0 (#369641)
[NixPkgs.git] / pkgs / development / python-modules / backports-strenum / default.nix
blob8c2df112478c7f40f924ff8a0617a199fc692605
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   pytestCheckHook,
7   pythonAtLeast,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "backports-strenum";
13   version = "1.3.1";
14   pyproject = true;
16   disabled = pythonOlder "3.8" || pythonAtLeast "3.11";
18   src = fetchFromGitHub {
19     owner = "clbarnes";
20     repo = "backports.strenum";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-j5tALFrLeZ8k+GwAaq0ocmcQWvdWkRUHbOVq5Du4mu0=";
23   };
25   build-system = [ poetry-core ];
27   nativeCheckInputs = [ pytestCheckHook ];
29   pythonImportsCheck = [ "backports.strenum" ];
31   meta = with lib; {
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 ];
36   };