0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

pythonPackages.CacheControl: init at 0.12.5

This commit is contained in:
Chris Ostrouchov 2018-10-10 21:20:34 -04:00 committed by Frederik Rietdijk
parent 7dec26dbac
commit 1a7682deb2
2 changed files with 36 additions and 0 deletions

View file

@ -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 ];
};
}