2019-03-23 00:03:13 +00:00
|
|
|
{ lib
|
2021-03-21 09:18:43 +00:00
|
|
|
, aiohttp
|
|
|
|
, asynctest
|
2019-03-23 00:03:13 +00:00
|
|
|
, buildPythonPackage
|
2021-03-21 09:18:43 +00:00
|
|
|
, ddt
|
2019-03-23 00:03:13 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pbr
|
2021-03-21 09:18:43 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2019-03-23 00:03:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioresponses";
|
2021-03-21 09:14:38 +00:00
|
|
|
version = "0.7.2";
|
2019-03-23 00:03:13 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-21 09:14:38 +00:00
|
|
|
sha256 = "sha256-guSV0Ri3SJaqW01H4X7/teLMeD5RCuOVzq3l6Hyr6Jo=";
|
2019-03-23 00:03:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
asynctest
|
|
|
|
ddt
|
2021-03-21 09:18:43 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Skip a test which makes requests to httpbin.org
|
|
|
|
"test_address_as_instance_of_url_combined_with_pass_through"
|
|
|
|
"test_pass_through_with_origin_params"
|
2019-03-23 00:03:13 +00:00
|
|
|
];
|
|
|
|
|
2021-03-21 09:18:43 +00:00
|
|
|
pythonImportsCheck = [ "aioresponses" ];
|
2019-03-23 00:03:13 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A helper to mock/fake web requests in python aiohttp package";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pnuckowski/aioresponses";
|
2019-03-23 00:03:13 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ rvl ];
|
|
|
|
};
|
|
|
|
}
|