1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00

python3Packages.cachelib: enable tests

This commit is contained in:
Fabian Affolter 2021-07-09 21:52:36 +02:00 committed by Jonathan Ringer
parent 8a76eaa305
commit 956caf75d0

View file

@ -1,14 +1,30 @@
{ lib, buildPythonPackage, fetchPypi }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-xprocess
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "cachelib";
version = "0.2.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-3LX6/mtrVEqqjQyssS1wu/m79ywEHxf8rRYY23vt6to=";
src = fetchFromGitHub {
owner = "pallets";
repo = pname;
rev = version;
sha256 = "1jh1ghvrv1mnw6mdq19s6x6fblz9qi0vskc6mjp0cxjpnxxblaml";
};
checkInputs = [
pytest-xprocess
pytestCheckHook
];
pythonImportsCheck = [ "cachelib" ];
meta = with lib; {
homepage = "https://github.com/pallets/cachelib";
description = "Collection of cache libraries in the same API interface";