python3Packages.cachelib: enable tests

wip/nixpkgs-raku
Fabian Affolter 3 years ago committed by Jonathan Ringer
parent 8a76eaa305
commit 956caf75d0
  1. 24
      pkgs/development/python-modules/cachelib/default.nix

@ -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";

Loading…
Cancel
Save