Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 114 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115{ lib, appdirs, attrs, buildPythonPackage, bson, boto3, botocore, cattrs, exceptiongroup, fetchFromGitHub, itsdangerous, poetry-core, pymongo, pytestCheckHook, pythonOlder, pyyaml, redis, requests, requests-mock, rich, timeout-decorator, ujson, urllib3, url-normalize}:
buildPythonPackage rec { pname = "requests-cache"; version = "0.9.8"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "requests-cache"; repo = "requests-cache"; rev = "refs/tags/v${version}"; hash = "sha256-Xbzbwz80xY8IDPDhZEUhmmiCFJZvSQMQ6EmE4EL7QGo="; };
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ appdirs attrs cattrs exceptiongroup requests urllib3 url-normalize ];
passthru.optional-dependencies = { dynamodb = [ boto3 botocore ]; mongodbo = [ pymongo ]; redis = [ redis ]; bson = [ bson ]; json = [ ujson ]; security = [ itsdangerous ]; yaml = [ pyyaml ]; };
nativeCheckInputs = [ pytestCheckHook requests-mock rich timeout-decorator ] ++ passthru.optional-dependencies.json ++ passthru.optional-dependencies.security;
preCheck = '' export HOME=$(mktemp -d); '';
pytestFlagsArray = [ # Integration tests require local DBs "tests/unit" ];
disabledTests = [ # Tests are flaky in the sandbox "test_remove_expired_responses" ];
pythonImportsCheck = [ "requests_cache" ];
meta = with lib; { description = "Persistent cache for requests library"; homepage = "https://github.com/reclosedev/requests-cache"; changelog = "https://github.com/requests-cache/requests-cache/blob/v${version}/HISTORY.md"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; };}