summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cache/default.nix
blob: 49625a8ba359d658a5ef555e5f3d0bcc8e406255 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "cache";
  version = "1.0.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jneen";
    repo = "python-cache";
    tag = "v${version}";
    hash = "sha256-vfVNo2B9fnjyjgR7cGrcsi9srWcTs3s8fhmvNF8okN0=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "cache" ];

  disabledTests = [
    # Tests are out-dated
    "test_arguments"
    "test_hash_arguments"
  ];

  meta = {
    description = "Module for caching";
    homepage = "https://github.com/jneen/python-cache";
    changelog = "https://github.com/jneen/python-cache/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}