33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
47 lines
1013 B
Nix
47 lines
1013 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
|
, setuptools-scm, wheel
|
|
, pytestCheckHook, pytest-mock, pytest-sugar
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "backports-cached-property";
|
|
version = "1.0.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "penguinolog";
|
|
repo = "backports.cached_property";
|
|
rev = version;
|
|
sha256 = "sha256-rdgKbVQaELilPrN4ve8RbbaLiT14Xex0esy5vUX2ZBc=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
wheel
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-mock
|
|
pytest-sugar
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"backports.cached_property"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python 3.8 functools.cached_property backport to python 3.6";
|
|
homepage = "https://github.com/penguinolog/backports.cached_property";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ izorkin ];
|
|
};
|
|
}
|