b6f2ab0a42
GitOrigin-RevId: 253aecf69ed7595aaefabde779aa6449195bebb7
46 lines
853 B
Nix
46 lines
853 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cookies
|
|
, fetchPypi
|
|
, mock
|
|
, pytest-localserver
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, six
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "responses";
|
|
version = "0.13.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-lHZ3XYVtPCSuZgu+vin7bXidStFqzXI++/tu4gmQuJk=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|