Merge pull request #235163 from natsukium/pdm/update

pdm: 2.6.1 -> 2.7.0; python3Packages.cacheyou: init at 23.3
This commit is contained in:
Martin Weinelt 2023-06-08 14:23:02 +02:00 committed by GitHub
commit a64b73e07d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 67 additions and 3 deletions

View file

@ -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 ];
};
}

View file

@ -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

View file

@ -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 {