depot/third_party/nixpkgs/pkgs/development/python2-modules/backports-functools-lru-cache/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

38 lines
788 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "backports-functools-lru-cache";
version = "1.6.6";
format = "pyproject";
src = fetchPypi {
pname = "backports.functools_lru_cache";
inherit version;
hash = "sha256-e3DnAbpNtYwO2GcanTORsKu5vRvCTU6Qw0gPS6r8wtw=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
# circular dependency:
# backports-functools-lru-cache -> pytest -> wc-width -> backports-functools-lru-cache
doCheck = false;
pythonImportsCheck = [
"backports.functools_lru_cache"
];
meta = {
description = "Backport of functools.lru_cache";
homepage = "https://github.com/jaraco/backports.functools_lru_cache";
license = lib.licenses.mit;
};
}