18 buildPythonPackage rec {
21 format = "setuptools";
23 disabled = pythonOlder "3.7";
25 __darwinAllowLocalNetworking = true;
27 src = fetchFromGitHub {
30 rev = "refs/tags/${version}";
31 hash = "sha256-VJmcRMn0O+3mDwzkCwxIX7RU3/I9T9p9N8t6USWDZJQ=";
34 propagatedBuildInputs = [
40 ] ++ lib.optionals (pythonOlder "3.8") [
50 ] ++ lib.optionals (pythonOlder "3.11") [
54 pythonImportsCheck = [
59 description = "Python module for mocking out the requests Python library";
60 homepage = "https://github.com/getsentry/responses";
61 changelog = "https://github.com/getsentry/responses/blob/${version}/CHANGES";
62 license = licenses.asl20;
63 maintainers = with maintainers; [ fab ];