Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / cachelib / default.nix
blob6a4f874a961c2d9177afdb47a42d1ec6e2dcaa94
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytest-xprocess
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "cachelib";
11   version = "0.10.2";
12   disabled = pythonOlder "3.6";
14   src = fetchFromGitHub {
15     owner = "pallets";
16     repo = pname;
17     rev = "refs/tags/${version}";
18     hash = "sha256-2V2FvZC8jM84fZEdK9ShzFrjO8goOQsN6cnJTHDDL9E=";
19   };
21   nativeCheckInputs = [
22     pytest-xprocess
23     pytestCheckHook
24   ];
26   disabledTestPaths = [
27     # requires set up local server
28     "tests/test_dynamodb_cache.py"
29   ];
31   pythonImportsCheck = [ "cachelib" ];
33   meta = with lib; {
34     homepage = "https://github.com/pallets/cachelib";
35     description = "Collection of cache libraries in the same API interface";
36     license = licenses.bsd3;
37     maintainers = with maintainers; [ gebner ];
38   };