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.6"; 11 pname = "CacheControl"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "be9aa45477a134aee56c8fac518627e1154df063e85f67d4f83ce0ccc23688e8"; 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}