summary refs log tree commit diff
path: root/pkgs/development/python-modules/backports_functools_lru_cache/default.nix
blob: bcaa844720bd37e695774be298deb64da412e1e5 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pythonOlder
}:

if !(pythonOlder "3.3") then null else buildPythonPackage rec {
  pname = "backports.functools_lru_cache";
  version = "1.5";

  src = fetchPypi {
    inherit pname version;
    sha256 = "9d98697f088eb1b0fa451391f91afb5e3ebde16bbdb272819fd091151fda4f1a";
  };

  buildInputs = [ setuptools_scm ];
  doCheck = false; # No proper test

  meta = {
    description = "Backport of functools.lru_cache";
    homepage = https://github.com/jaraco/backports.functools_lru_cache;
    license = lib.licenses.mit;
  };
}