8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
43 lines
777 B
Nix
43 lines
777 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest-localserver
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "responses";
|
|
version = "0.18.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-OAytTBwdyULl6KjqrgtNTt9wj08BDbi3vPr60fzSVP8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|