2019-10-08 08:26:32 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2021-01-11 11:16:08 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-02-04 08:16:05 +00:00
|
|
|
, pythonOlder
|
2019-10-08 08:26:32 +00:00
|
|
|
, pytest
|
|
|
|
, pytest-asyncio
|
2021-01-11 11:16:08 +00:00
|
|
|
, pytestCheckHook
|
2019-10-08 08:26:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aresponses";
|
2022-07-04 15:50:56 +00:00
|
|
|
version = "2.1.6";
|
2022-02-04 08:16:05 +00:00
|
|
|
format = "setuptools";
|
2019-10-08 08:26:32 +00:00
|
|
|
|
2022-02-04 08:16:05 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-09-09 16:10:21 +00:00
|
|
|
|
2021-01-11 11:16:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CircleUp";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-Ui9ZpWaVBfCbDlZH3EgHX32FIZtyTHnc/UXqtoEyFcw=";
|
2019-10-08 08:26:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-01-11 11:16:08 +00:00
|
|
|
aiohttp
|
|
|
|
pytest-asyncio
|
2021-01-18 19:43:31 +00:00
|
|
|
pytestCheckHook
|
2021-01-11 11:16:08 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2022-02-04 08:16:05 +00:00
|
|
|
# Disable tests which requires network access
|
2021-01-11 11:16:08 +00:00
|
|
|
"test_foo"
|
|
|
|
"test_passthrough"
|
|
|
|
];
|
|
|
|
|
2021-01-18 19:43:31 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2022-02-04 08:16:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aresponses"
|
|
|
|
];
|
2019-10-08 08:26:32 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Asyncio testing server";
|
|
|
|
homepage = "https://github.com/circleup/aresponses";
|
|
|
|
license = licenses.mit;
|
2021-01-11 11:16:08 +00:00
|
|
|
maintainers = with maintainers; [ makefu ];
|
2019-10-08 08:26:32 +00:00
|
|
|
};
|
|
|
|
}
|
2022-02-04 08:16:05 +00:00
|
|
|
|