depot/pkgs/development/python2-modules/backports-functools-lru-cache/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00: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;
};
}