Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, requests 5, msgpack 6, pytest 7}: 8 9buildPythonPackage rec { 10 version = "0.12.5"; 11 pname = "CacheControl"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "cef77effdf51b43178f6a2d3b787e3734f98ade253fa3187f3bb7315aaa42ff7"; 16 }; 17 18 checkInputs = [ pytest ]; 19 propagatedBuildInputs = [ requests msgpack ]; 20 21 # tests not included with pypi release 22 doCheck = false; 23 24 checkPhase = '' 25 pytest tests 26 ''; 27 28 meta = with stdenv.lib; { 29 homepage = https://github.com/ionrock/cachecontrol; 30 description = "Httplib2 caching for requests"; 31 license = licenses.asl20; 32 maintainers = [ maintainers.costrouc ]; 33 }; 34}