nixpkgs/pkgs/development/python-modules/rokuecp/default.nix
2022-02-19 21:43:25 +01:00

74 lines
1.3 KiB
Nix

{ lib
, aiohttp
, aresponses
, awesomeversion
, backoff
, buildPythonPackage
, cachetools
, fetchFromGitHub
, poetry
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, xmltodict
, yarl
}:
buildPythonPackage rec {
pname = "rokuecp";
version = "0.14.1";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "ctalkington";
repo = "python-rokuecp";
rev = version;
hash = "sha256-K9R//xbyXaJ+AHmt42Fv40j43UkvKVyAFiXAq+P4mh8=";
};
nativeBuildInputs = [
# Requires poetry not poetry-core
poetry
];
propagatedBuildInputs = [
aiohttp
backoff
cachetools
xmltodict
awesomeversion
yarl
];
checkInputs = [
aresponses
pytestCheckHook
pytest-asyncio
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov" ""
'';
disabledTests = [
# https://github.com/ctalkington/python-rokuecp/issues/249
"test_resolve_hostname"
# Assertion issue
"test_guess_stream_format"
];
pythonImportsCheck = [
"rokuecp"
];
meta = with lib; {
description = "Asynchronous Python client for Roku (ECP)";
homepage = "https://github.com/ctalkington/python-rokuecp";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}