mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
35 lines
701 B
Nix
35 lines
701 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-xprocess
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cachelib";
|
|
version = "0.5.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pallets";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0sry5kn52hc742400xff99zpij0dxlvbd5m8il7k9ihpywrfvzd5";
|
|
};
|
|
|
|
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";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ gebner ];
|
|
};
|
|
}
|