blob: 6c3d35544bec9261b992229b6ed0d63f730c62a9 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
buildPythonPackage,
cython,
expandvars,
fetchFromGitHub,
pytest-codspeed,
pytest-cov-stub,
pytest-xdist,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "propcache";
version = "0.3.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "aio-libs";
repo = "propcache";
tag = "v${version}";
hash = "sha256-3jsQnRkXBB7/6xY44kv7JuAXz/P8oxUg8Hyg1O5w2Cg=";
};
postPatch = ''
substituteInPlace packaging/pep517_backend/_backend.py \
--replace "Cython ~= 3.0.12" Cython
'';
build-system = [
cython
expandvars
setuptools
];
nativeCheckInputs = [
pytest-codspeed
pytest-cov-stub
pytest-xdist
pytestCheckHook
];
pythonImportsCheck = [ "propcache" ];
meta = {
description = "Fast property caching";
homepage = "https://github.com/aio-libs/propcache";
changelog = "https://github.com/aio-libs/propcache/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|