From 737447c23b95722e9e96fd5ba9e01162d873edb4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 8 Jul 2021 12:10:02 +0200 Subject: [PATCH] python3Packages.requests-cache: 0.6.4 -> 0.7.0 --- .../python-modules/requests-cache/default.nix | 40 +++++++++++-------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/requests-cache/default.nix b/pkgs/development/python-modules/requests-cache/default.nix index 35cf74ca8426..e2ed5367df5e 100644 --- a/pkgs/development/python-modules/requests-cache/default.nix +++ b/pkgs/development/python-modules/requests-cache/default.nix @@ -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 ]; }; }