Merge pull request #163112 from fabaff/tests-pylru
python3Packages.pylru: add pythonImportsCheck
This commit is contained in:
commit
cac0cc66ea
1 changed files with 23 additions and 6 deletions
|
@ -1,18 +1,35 @@
|
|||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylru";
|
||||
version = "1.2.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-R60UCmOrk4lkja37tDMHAOD/7rKOwEZk7kfTftEzsPQ=";
|
||||
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; {
|
||||
homepage = "https://github.com/jlhutch/pylru";
|
||||
description = "A least recently used (LRU) cache implementation";
|
||||
license = licenses.gpl2;
|
||||
homepage = "https://github.com/jlhutch/pylru";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue