nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 45 lines 824 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-localserver 5, pytestCheckHook 6, pythonOlder 7, requests 8, urllib3 9}: 10 11buildPythonPackage rec { 12 pname = "responses"; 13 version = "0.20.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "getsentry"; 20 repo = pname; 21 rev = version; 22 hash = "sha256-dhIKMQXBJfZGIanJN1bFmlr/FYL1UYgYKGYaSznKhZs="; 23 }; 24 25 propagatedBuildInputs = [ 26 requests 27 urllib3 28 ]; 29 30 checkInputs = [ 31 pytest-localserver 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "responses" 37 ]; 38 39 meta = with lib; { 40 description = "Python module for mocking out the requests Python library"; 41 homepage = "https://github.com/getsentry/responses"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}