Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 36 lines 830 B view raw
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}