depot/third_party/nixpkgs/pkgs/development/python-modules/pylru/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

33 lines
695 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pylru";
version = "1.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jlhutch";
repo = pname;
rev = "v${version}";
hash = "sha256-dTYiD+/zt0ZSP+sefYyeD87To1nRXyoFodlBg8pm1YE=";
};
# Check with the next release if tests are ready
doCheck = false;
pythonImportsCheck = [ "pylru" ];
meta = with lib; {
description = "Least recently used (LRU) cache implementation";
homepage = "https://github.com/jlhutch/pylru";
license = licenses.gpl2Only;
maintainers = with maintainers; [ abbradar ];
};
}