2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
2022-02-10 20:34:41 +00:00
|
|
|
, awesomeversion
|
|
|
|
, backoff
|
2021-12-06 16:07:01 +00:00
|
|
|
, buildPythonPackage
|
2022-01-27 00:19:43 +00:00
|
|
|
, cachetools
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
2022-02-10 20:34:41 +00:00
|
|
|
, poetry
|
2021-04-25 03:57:28 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
|
|
|
, xmltodict
|
|
|
|
, yarl
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rokuecp";
|
2022-02-21 08:47:16 +00:00
|
|
|
version = "0.14.1";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "pyproject";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ctalkington";
|
|
|
|
repo = "python-rokuecp";
|
|
|
|
rev = version;
|
2022-02-21 08:47:16 +00:00
|
|
|
hash = "sha256-K9R//xbyXaJ+AHmt42Fv40j43UkvKVyAFiXAq+P4mh8=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
# Requires poetry not poetry-core
|
|
|
|
poetry
|
|
|
|
];
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2022-02-10 20:34:41 +00:00
|
|
|
backoff
|
2022-01-27 00:19:43 +00:00
|
|
|
cachetools
|
2021-04-25 03:57:28 +00:00
|
|
|
xmltodict
|
2022-02-10 20:34:41 +00:00
|
|
|
awesomeversion
|
2021-04-25 03:57:28 +00:00
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aresponses
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace " --cov" ""
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/ctalkington/python-rokuecp/issues/249
|
|
|
|
"test_resolve_hostname"
|
2022-02-20 05:27:41 +00:00
|
|
|
# Assertion issue
|
|
|
|
"test_guess_stream_format"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"rokuecp"
|
|
|
|
];
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Asynchronous Python client for Roku (ECP)";
|
|
|
|
homepage = "https://github.com/ctalkington/python-rokuecp";
|
|
|
|
license = licenses.mit;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|