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

72 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, aiohttp
, aresponses
, awesomeversion
, backoff
, buildPythonPackage
, cachetools
, fetchFromGitHub
, poetry
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, xmltodict
, yarl
}:
buildPythonPackage rec {
pname = "rokuecp";
version = "0.13.1";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "ctalkington";
repo = "python-rokuecp";
rev = version;
hash = "sha256-6bHEg7bpqldLDr3UX42GUg7kIDHVxtnVnrFr8CvTJU4=";
};
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"
];
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 ];
};
}