2021-11-14 11:08:24 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, typing-extensions
|
2018-10-26 15:00:23 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-11-14 11:08:24 +00:00
|
|
|
pname = "aiohttp-remotes";
|
2022-01-14 00:58:04 +00:00
|
|
|
version = "1.2.0";
|
2021-11-14 11:08:24 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-10-26 15:00:23 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-11-14 11:08:24 +00:00
|
|
|
pname = "aiohttp_remotes";
|
|
|
|
inherit version;
|
2022-01-14 00:58:04 +00:00
|
|
|
sha256 = "f95c3a6be5e2de746a85ce9af49ec548da6db8378d7e81bb171ec77b13562a6c";
|
2018-10-26 15:00:23 +01:00
|
|
|
};
|
|
|
|
|
2021-11-14 11:08:24 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
] ++ lib.optionals (pythonOlder "3.7") [
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-10-26 15:00:23 +01:00
|
|
|
|
2021-11-14 11:08:24 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace " --no-cov-on-fail --cov-branch --cov=aiohttp_remotes --cov-report=term --cov-report=html" ""
|
2018-10-26 15:00:23 +01:00
|
|
|
'';
|
|
|
|
|
2021-11-14 11:08:24 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiohttp_remotes"
|
|
|
|
];
|
|
|
|
|
2018-10-26 15:00:23 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A set of useful tools for aiohttp.web server";
|
2021-11-14 11:08:24 +00:00
|
|
|
homepage = "https://github.com/wikibusiness/aiohttp-remotes";
|
2018-10-26 15:00:23 +01:00
|
|
|
license = licenses.mit;
|
2021-11-14 11:08:24 +00:00
|
|
|
maintainers = with maintainers; [ qyliss ];
|
2018-10-26 15:00:23 +01:00
|
|
|
};
|
|
|
|
}
|