depot/third_party/nixpkgs/pkgs/development/python-modules/cachelib/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

34 lines
700 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-xprocess
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "cachelib";
version = "0.6.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "pallets";
repo = pname;
rev = version;
sha256 = "sha256-1msDiNYxaETJfVBTaMuNJbSxhOpyRdHkb5CQ+1+ZbbQ=";
};
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 ];
};
}