depot/third_party/nixpkgs/pkgs/development/python-modules/responses/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

45 lines
791 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest-localserver
, pytestCheckHook
, pythonOlder
, requests
, six
, urllib3
}:
buildPythonPackage rec {
pname = "responses";
version = "0.17.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-7GdeCA0Gv40fteWmih5c0N9GsJx4IwMV9lCvXkA2vsc=";
};
propagatedBuildInputs = [
requests
six
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 ];
};
}