Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 61 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ 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="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "uv_build>=0.9.6,<0.10.0" uv_build '';
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 ]; };}