Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pylru / default.nix
bloba83f2fd3ad14e40802fbd0fddf4a6ab01728d77a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "pylru";
10   version = "1.2.1";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "jlhutch";
17     repo = pname;
18     rev = "v${version}";
19     hash = "sha256-dTYiD+/zt0ZSP+sefYyeD87To1nRXyoFodlBg8pm1YE=";
20   };
22   # Check with the next release if tests are ready
23   doCheck = false;
25   pythonImportsCheck = [
26     "pylru"
27   ];
29   meta = with lib; {
30     description = "A least recently used (LRU) cache implementation";
31     homepage = "https://github.com/jlhutch/pylru";
32     license = licenses.gpl2Only;
33     maintainers = with maintainers; [ abbradar ];
34   };