nixpkgs/pkgs/development/python-modules/rokuecp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

81 lines
1.6 KiB
Nix
Raw Normal View History

2021-04-23 00:40:52 +00:00
{ lib
, aiohttp
, aresponses
, awesomeversion
, backoff
, buildPythonPackage
, cachetools
, fetchFromGitHub
, poetry-core
2021-04-23 00:40:52 +00:00
, pytest-asyncio
, pytest-freezegun
2021-04-23 00:40:52 +00:00
, pytestCheckHook
, pythonOlder
, xmltodict
, yarl
2021-04-23 00:40:52 +00:00
}:
buildPythonPackage rec {
pname = "rokuecp";
version = "0.17.1";
format = "pyproject";
2021-04-23 00:40:52 +00:00
disabled = pythonOlder "3.9";
2021-04-23 00:40:52 +00:00
src = fetchFromGitHub {
owner = "ctalkington";
repo = "python-rokuecp";
rev = "refs/tags/${version}";
hash = "sha256-3GHG4FBGMiF5kNk2gl05xiX9+5tcrUyi4SUCXTa6Qco=";
2021-04-23 00:40:52 +00:00
};
nativeBuildInputs = [
poetry-core
];
2021-04-23 00:40:52 +00:00
propagatedBuildInputs = [
aiohttp
backoff
cachetools
2021-04-23 00:40:52 +00:00
xmltodict
awesomeversion
2021-04-23 00:40:52 +00:00
yarl
];
nativeCheckInputs = [
2021-04-23 00:40:52 +00:00
aresponses
pytest-asyncio
pytest-freezegun
pytestCheckHook
2021-04-23 00:40:52 +00:00
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'version = "0.0.0"' 'version = "${version}"' \
--replace " --cov" ""
'';
disabledTests = [
# Network related tests are having troube in the sandbox
"test_resolve_hostname"
"test_get_dns_state"
# Assertion issue
"test_guess_stream_format"
"test_update_tv"
"test_get_apps_single_app"
"test_get_tv_channels_single_channel"
];
pythonImportsCheck = [
"rokuecp"
];
2021-04-23 00:40:52 +00:00
meta = with lib; {
description = "Asynchronous Python client for Roku (ECP)";
homepage = "https://github.com/ctalkington/python-rokuecp";
changelog = "https://github.com/ctalkington/python-rokuecp/releases/tag/${version}";
2021-04-23 00:40:52 +00:00
license = licenses.mit;
maintainers = with maintainers; [ fab ];
2021-04-23 00:40:52 +00:00
};
}