1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "cache";
11 version = "1.0.3";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "jneen";
16 repo = "python-cache";
17 tag = "v${version}";
18 hash = "sha256-vfVNo2B9fnjyjgR7cGrcsi9srWcTs3s8fhmvNF8okN0=";
19 };
20
21 build-system = [ setuptools ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "cache" ];
26
27 disabledTests = [
28 # Tests are out-dated
29 "test_arguments"
30 "test_hash_arguments"
31 ];
32
33 meta = {
34 description = "Module for caching";
35 homepage = "https://github.com/jneen/python-cache";
36 changelog = "https://github.com/jneen/python-cache/releases/tag/v${version}";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ fab ];
39 };
40}