From 1a7682deb292d3a19b9002bc0986ec1f3f0f8180 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 10 Oct 2018 21:20:34 -0400 Subject: [PATCH] pythonPackages.CacheControl: init at 0.12.5 --- .../python-modules/cachecontrol/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/cachecontrol/default.nix diff --git a/pkgs/development/python-modules/cachecontrol/default.nix b/pkgs/development/python-modules/cachecontrol/default.nix new file mode 100644 index 000000000000..7fedf8c5461b --- /dev/null +++ b/pkgs/development/python-modules/cachecontrol/default.nix @@ -0,0 +1,34 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, requests +, msgpack +, pytest +}: + +buildPythonPackage rec { + version = "0.12.5"; + pname = "CacheControl"; + + src = fetchPypi { + inherit pname version; + sha256 = "cef77effdf51b43178f6a2d3b787e3734f98ade253fa3187f3bb7315aaa42ff7"; + }; + + checkInputs = [ pytest ]; + propagatedBuildInputs = [ requests msgpack ]; + + # tests not included with pypi release + doCheck = false; + + checkPhase = '' + pytest tests + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/ionrock/cachecontrol; + description = "Httplib2 caching for requests"; + license = licenses.asl20; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ea4f901b8516..35251c154450 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -264,6 +264,8 @@ in { bugseverywhere = callPackage ../applications/version-management/bugseverywhere {}; + cachecontrol = callPackage ../development/python-modules/cachecontrol { }; + cdecimal = callPackage ../development/python-modules/cdecimal { }; clustershell = callPackage ../development/python-modules/clustershell { };