python3Packages.requests-cache: 0.6.4 -> 0.7.0

This commit is contained in:
Fabian Affolter
2021-07-08 12:10:02 +02:00
parent 44188d6472
commit 737447c23b
@@ -1,52 +1,57 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, attrs
, buildPythonPackage
, cattrs
, fetchFromGitHub
, itsdangerous
, requests
, url-normalize
, poetry-core
, pytestCheckHook
, pythonOlder
, pyyaml
, requests
, requests-mock
, rich
, timeout-decorator
, ujson
, url-normalize
}:
buildPythonPackage rec {
pname = "requests-cache";
version = "0.6.4";
version = "0.7.0";
disabled = pythonOlder "3.6";
format = "pyproject";
src = fetchFromGitHub {
owner = "reclosedev";
repo = "requests-cache";
rev = "v${version}";
sha256 = "10rvs611j16kakqx38kpqpc1v0dfb9rmbz2whpskswb1lsksv3j9";
sha256 = "sha256-P7JzImidUXOD4DUMdfy3sgM5RISti23wNnLwDHPoiTA=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
attrs
cattrs
itsdangerous
pyyaml
requests
ujson
url-normalize
];
checkInputs = [
pytestCheckHook
requests-mock
rich
timeout-decorator
];
disabledTestPaths = [
# connect to database on localhost
"tests/integration/test_cache.py"
"tests/integration/test_dynamodb.py"
"tests/integration/test_gridfs.py"
"tests/integration/test_mongodb.py"
"tests/integration/test_redis.py"
];
# Integration tests require local DBs
pytestFlagsArray = [ "tests/unit" ];
pythonImportsCheck = [ "requests_cache" ];
@@ -54,5 +59,6 @@ buildPythonPackage rec {
description = "Persistent cache for requests library";
homepage = "https://github.com/reclosedev/requests-cache";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}