summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/fastcache/default.nix
blob: 479b7bb4c77b8b2cd35d773ecc071f1730d029b5 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pytest,
  setuptools,
}:

buildPythonPackage rec {
  pname = "fastcache";
  version = "1.1.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-beGxbnAzW3veJmcH60AaOq7CIPtmxdE7Aqvw6ri+eCs=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytest ];

  pythonImportsCheck = [ "fastcache" ];

  meta = {
    description = "C implementation of Python3 lru_cache";
    homepage = "https://github.com/pbrady/fastcache";
    changelog = "https://github.com/pbrady/fastcache/blob/v${version}/CHANGELOG";
    license = lib.licenses.mit;
  };
}