depot/third_party/nixpkgs/pkgs/development/python-modules/responses/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

45 lines
824 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-localserver
, pytestCheckHook
, pythonOlder
, requests
, urllib3
}:
buildPythonPackage rec {
pname = "responses";
version = "0.20.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "getsentry";
repo = pname;
rev = version;
hash = "sha256-dhIKMQXBJfZGIanJN1bFmlr/FYL1UYgYKGYaSznKhZs=";
};
propagatedBuildInputs = [
requests
urllib3
];
checkInputs = [
pytest-localserver
pytestCheckHook
];
pythonImportsCheck = [
"responses"
];
meta = with lib; {
description = "Python module for mocking out the requests Python library";
homepage = "https://github.com/getsentry/responses";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}