2021-06-15 16:51:26 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aiohttp
|
|
|
|
, attrs
|
|
|
|
, defusedxml
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "arcam-fmj";
|
2021-08-21 08:39:04 +01:00
|
|
|
version = "0.11.1";
|
2021-06-15 16:51:26 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elupus";
|
|
|
|
repo = "arcam_fmj";
|
|
|
|
rev = version;
|
2021-08-21 08:39:04 +01:00
|
|
|
sha256 = "sha256-Vs32LGRN6kxG8sswvuUwuUbLv9GXuhJeK0CUGoo2EgE=";
|
2021-06-15 16:51:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
attrs
|
|
|
|
defusedxml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"arcam.fmj"
|
|
|
|
"arcam.fmj.client"
|
|
|
|
"arcam.fmj.state"
|
|
|
|
"arcam.fmj.utils"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for speaking to Arcam receivers";
|
|
|
|
homepage = "https://github.com/elupus/arcam_fmj";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|