depot/third_party/nixpkgs/pkgs/development/python-modules/rokuecp/default.nix
Default email 73a29e0b97 Project import generated by Copybara.
GitOrigin-RevId: 5bb20f9dc70e9ee16e21cc404b6508654931ce41
2022-01-27 10:19:43 +10:00

56 lines
1,008 B
Nix

{ lib
, aiohttp
, aresponses
, buildPythonPackage
, cachetools
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, xmltodict
, yarl
}:
buildPythonPackage rec {
pname = "rokuecp";
version = "0.12.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ctalkington";
repo = "python-rokuecp";
rev = version;
sha256 = "1pqiba4zgx7knm1k53p6w6b9a81dalqfq2agdyrz3734nhl6gx1h";
};
propagatedBuildInputs = [
aiohttp
cachetools
xmltodict
yarl
];
checkInputs = [
aresponses
pytestCheckHook
pytest-asyncio
];
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 ];
};
}