depot/third_party/nixpkgs/pkgs/development/python-modules/responses/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

46 lines
853 B
Nix

{ lib
, buildPythonPackage
, cookies
, fetchPypi
, mock
, pytest-localserver
, pytestCheckHook
, pythonOlder
, requests
, six
, urllib3
}:
buildPythonPackage rec {
pname = "responses";
version = "0.15.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-hmdXmH0ZYqqQjZyLMYVzn679cqNZ6VRZ3gwuTlNpybI=";
};
propagatedBuildInputs = [
requests
urllib3
six
] ++ lib.optionals (pythonOlder "3.4") [
cookies
] ++ lib.optionals (pythonOlder "3.3") [
mock
];
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 ];
};
}