depot/third_party/nixpkgs/pkgs/development/python-modules/cachecontrol/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
682 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, requests
, msgpack
, pytest
}:
buildPythonPackage rec {
version = "0.12.6";
pname = "CacheControl";
src = fetchPypi {
inherit pname version;
sha256 = "be9aa45477a134aee56c8fac518627e1154df063e85f67d4f83ce0ccc23688e8";
};
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 ];
};
}