1{
2 lib,
3 buildPythonPackage,
4 cython,
5 expandvars,
6 fetchFromGitHub,
7 pytest-cov-stub,
8 pytest-xdist,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "propcache";
16 version = "0.2.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.11";
20
21 src = fetchFromGitHub {
22 owner = "aio-libs";
23 repo = "propcache";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-S0u5/HJYtZCWB9X+Nlnz+oSFb3o98mGWWwsNLodzS9g=";
26 };
27
28 build-system = [
29 cython
30 expandvars
31 setuptools
32 ];
33
34 nativeCheckInputs = [
35 pytest-cov-stub
36 pytest-xdist
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [ "propcache" ];
41
42 meta = {
43 description = "Fast property caching";
44 homepage = "https://github.com/aio-libs/propcache";
45 changelog = "https://github.com/aio-libs/propcache/blob/${src.rev}/CHANGES.rst";
46 license = lib.licenses.asl20;
47 maintainers = with lib.maintainers; [ fab ];
48 };
49}