Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / cacheyou / default.nix
blob375beadd4f6dc6e067d727a076c3151320e5d933
1 { lib
2 , buildPythonPackage
3 , cherrypy
4 , fetchPypi
5 , filelock
6 , msgpack
7 , pdm-backend
8 , pytestCheckHook
9 , pythonOlder
10 , redis
11 , requests
14 buildPythonPackage rec {
15   pname = "cacheyou";
16   version = "23.3";
17   format = "pyproject";
19   disabled = pythonOlder "3.7";
21   __darwinAllowLocalNetworking = true;
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-fkCPFfSXj+oiR3NLMIYh919/4Wm0YWeVGccuioXWHV0=";
26   };
28   nativeBuildInputs = [
29     pdm-backend
30   ];
32   propagatedBuildInputs = [
33     msgpack
34     requests
35   ];
37   passthru.optional-dependencies = {
38     filecache = [
39       filelock
40     ];
41     redis = [
42       redis
43     ];
44   };
46   nativeCheckInputs = [
47     cherrypy
48     pytestCheckHook
49   ] ++ passthru.optional-dependencies.filecache;
51   pythonImportsCheck = [
52     "cacheyou"
53   ];
55   meta = {
56     description = "The httplib2 caching algorithms packaged up for use with requests";
57     homepage = "https://github.com/frostming/cacheyou";
58     changelog = "https://github.com/frostming/cacheyou/releases/tag/${version}";
59     license = lib.licenses.asl20;
60     maintainers = with lib.maintainers; [ natsukium ];
61   };