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