mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 19:43:02 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cherrypy,
|
|
fetchFromGitHub,
|
|
filelock,
|
|
msgpack,
|
|
pytestCheckHook,
|
|
redis,
|
|
requests,
|
|
uv-build,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cachecontrol";
|
|
version = "0.14.4";
|
|
pyproject = true;
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ionrock";
|
|
repo = "cachecontrol";
|
|
tag = "v${version}";
|
|
hash = "sha256-627SqJocVOO0AfI8vswPqOr15MA/Lx7RLAdRAXzWu84=";
|
|
};
|
|
|
|
build-system = [ uv-build ];
|
|
|
|
dependencies = [
|
|
msgpack
|
|
requests
|
|
];
|
|
|
|
optional-dependencies = {
|
|
filecache = [ filelock ];
|
|
redis = [ redis ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
cherrypy
|
|
pytestCheckHook
|
|
]
|
|
++ lib.concatAttrValues optional-dependencies;
|
|
|
|
pythonImportsCheck = [ "cachecontrol" ];
|
|
|
|
meta = {
|
|
description = "Httplib2 caching for requests";
|
|
mainProgram = "doesitcache";
|
|
homepage = "https://github.com/ionrock/cachecontrol";
|
|
changelog = "https://github.com/psf/cachecontrol/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|