nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 49 lines 833 B view raw
1{ lib 2, buildPythonPackage 3, cherrypy 4, fetchFromGitHub 5, lockfile 6, mock 7, msgpack 8, pytestCheckHook 9, pythonOlder 10, requests 11}: 12 13buildPythonPackage rec { 14 pname = "cachecontrol"; 15 version = "0.12.10"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "ionrock"; 22 repo = pname; 23 rev = "v${version}"; 24 hash = "sha256-mgvL0q10UbPHY1H3tJprke5p8qNl3HNYoeLAERZTcTs="; 25 }; 26 27 propagatedBuildInputs = [ 28 lockfile 29 msgpack 30 requests 31 ]; 32 33 checkInputs = [ 34 cherrypy 35 mock 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "cachecontrol" 41 ]; 42 43 meta = with lib; { 44 description = "Httplib2 caching for requests"; 45 homepage = "https://github.com/ionrock/cachecontrol"; 46 license = licenses.asl20; 47 maintainers = with maintainers; [ costrouc ]; 48 }; 49}