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