From b7ec2df669e67675ea2e7924c8850ad18fd62b93 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 31 Oct 2021 12:59:29 +0100 Subject: [PATCH 1/2] python3Packages.cachecontrol: 0.12.6 -> 0.12.8 --- pkgs/development/python-modules/cachecontrol/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/cachecontrol/default.nix b/pkgs/development/python-modules/cachecontrol/default.nix index ba9b9022ac80..461097929c5d 100644 --- a/pkgs/development/python-modules/cachecontrol/default.nix +++ b/pkgs/development/python-modules/cachecontrol/default.nix @@ -7,12 +7,12 @@ }: buildPythonPackage rec { - version = "0.12.6"; + version = "0.12.8"; pname = "CacheControl"; src = fetchPypi { inherit pname version; - sha256 = "be9aa45477a134aee56c8fac518627e1154df063e85f67d4f83ce0ccc23688e8"; + sha256 = "sha256-JUBDwbq3SMicCaiQ+RKKD7LGVOlGvPRzwS0p/fnLbFs="; }; checkInputs = [ pytest ]; From ff3a4fd57c6765718783e9ea48f907327914ec12 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 1 Nov 2021 09:39:56 +0100 Subject: [PATCH 2/2] python3Packages.cachecontrol: 0.12.6 -> 0.12.8 --- .../python-modules/cachecontrol/default.nix | 44 ++++++++++++------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/cachecontrol/default.nix b/pkgs/development/python-modules/cachecontrol/default.nix index 461097929c5d..7a124bae2ec7 100644 --- a/pkgs/development/python-modules/cachecontrol/default.nix +++ b/pkgs/development/python-modules/cachecontrol/default.nix @@ -1,34 +1,46 @@ { lib , buildPythonPackage -, fetchPypi -, requests +, cherrypy +, fetchFromGitHub +, lockfile +, mock , msgpack -, pytest +, pytestCheckHook +, requests }: buildPythonPackage rec { + pname = "cachecontrol"; version = "0.12.8"; - pname = "CacheControl"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-JUBDwbq3SMicCaiQ+RKKD7LGVOlGvPRzwS0p/fnLbFs="; + src = fetchFromGitHub { + owner = "ionrock"; + repo = pname; + rev = "v${version}"; + sha256 = "0y15xbaqw2lxidwbyrgpy42v3cxgv4ys63fx2586h1szlrd4f3p4"; }; - checkInputs = [ pytest ]; - propagatedBuildInputs = [ requests msgpack ]; + propagatedBuildInputs = [ + msgpack + requests + ]; - # tests not included with pypi release - doCheck = false; + checkInputs = [ + cherrypy + mock + lockfile + pytestCheckHook + ]; - checkPhase = '' - pytest tests - ''; + pythonImportsCheck = [ + "cachecontrol" + ]; meta = with lib; { - homepage = "https://github.com/ionrock/cachecontrol"; description = "Httplib2 caching for requests"; + homepage = "https://github.com/ionrock/cachecontrol"; license = licenses.asl20; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; }