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