diff --git a/pkgs/development/python-modules/cacheyou/default.nix b/pkgs/development/python-modules/cacheyou/default.nix new file mode 100644 index 000000000000..375beadd4f6d --- /dev/null +++ b/pkgs/development/python-modules/cacheyou/default.nix @@ -0,0 +1,62 @@ +{ lib +, buildPythonPackage +, cherrypy +, fetchPypi +, filelock +, msgpack +, pdm-backend +, pytestCheckHook +, pythonOlder +, redis +, requests +}: + +buildPythonPackage rec { + pname = "cacheyou"; + version = "23.3"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + __darwinAllowLocalNetworking = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-fkCPFfSXj+oiR3NLMIYh919/4Wm0YWeVGccuioXWHV0="; + }; + + nativeBuildInputs = [ + pdm-backend + ]; + + propagatedBuildInputs = [ + msgpack + requests + ]; + + passthru.optional-dependencies = { + filecache = [ + filelock + ]; + redis = [ + redis + ]; + }; + + nativeCheckInputs = [ + cherrypy + pytestCheckHook + ] ++ passthru.optional-dependencies.filecache; + + pythonImportsCheck = [ + "cacheyou" + ]; + + meta = { + description = "The httplib2 caching algorithms packaged up for use with requests"; + homepage = "https://github.com/frostming/cacheyou"; + changelog = "https://github.com/frostming/cacheyou/releases/tag/${version}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ natsukium ]; + }; +} diff --git a/pkgs/tools/package-management/pdm/default.nix b/pkgs/tools/package-management/pdm/default.nix index e3ea6d4afa52..01eda1ea0504 100644 --- a/pkgs/tools/package-management/pdm/default.nix +++ b/pkgs/tools/package-management/pdm/default.nix @@ -24,13 +24,13 @@ in with python.pkgs; buildPythonApplication rec { pname = "pdm"; - version = "2.6.1"; + version = "2.7.0"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-EFlYhJovjZqp7yGDosUOrp60rEf8gScs1QT92ckO3qI="; + hash = "sha256-4dyu/neMFX/U1RuI0ZEBzdbONIHvdWyvpy1Gu5iMAcg="; }; nativeBuildInputs = [ @@ -39,7 +39,7 @@ buildPythonApplication rec { propagatedBuildInputs = [ blinker - cachecontrol + cacheyou certifi findpython installer diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f9c49d2f8330..9c4741560720 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1585,6 +1585,8 @@ self: super: with self; { cachey = callPackage ../development/python-modules/cachey { }; + cacheyou = callPackage ../development/python-modules/cacheyou { }; + cachy = callPackage ../development/python-modules/cachy { }; cadquery = callPackage ../development/python-modules/cadquery {