Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools-scm, 7 wheel, 8 pytestCheckHook, 9 pytest-mock, 10 pytest-sugar, 11}: 12 13buildPythonPackage rec { 14 pname = "backports-cached-property"; 15 version = "1.0.2"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "penguinolog"; 22 repo = "backports.cached_property"; 23 rev = version; 24 hash = "sha256-rdgKbVQaELilPrN4ve8RbbaLiT14Xex0esy5vUX2ZBc="; 25 }; 26 27 nativeBuildInputs = [ setuptools-scm ]; 28 29 propagatedBuildInputs = [ wheel ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 pytest-mock 34 pytest-sugar 35 ]; 36 37 pythonImportsCheck = [ "backports.cached_property" ]; 38 39 meta = with lib; { 40 description = "Python 3.8 functools.cached_property backport to python 3.6"; 41 homepage = "https://github.com/penguinolog/backports.cached_property"; 42 license = with licenses; [ mit ]; 43 maintainers = with maintainers; [ izorkin ]; 44 }; 45}