2021-03-22 23:08:39 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aioresponses
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-04-29 08:40:29 +01:00
|
|
|
, pytest-aiohttp
|
2021-03-22 23:08:39 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydeconz";
|
2021-07-23 00:36:21 +01:00
|
|
|
version = "82";
|
2021-03-22 23:08:39 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Kane610";
|
|
|
|
repo = "deconz";
|
|
|
|
rev = "v${version}";
|
2021-07-23 00:36:21 +01:00
|
|
|
sha256 = "sha256-DdZ6bf+2rMjgjm5aRxcSRI/hN0zfP7uV8PaM40c9IJo=";
|
2021-03-22 23:08:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aioresponses
|
2021-04-29 08:40:29 +01:00
|
|
|
pytest-aiohttp
|
2021-03-22 23:08:39 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pydeconz" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library wrapping the Deconz REST API";
|
|
|
|
homepage = "https://github.com/Kane610/deconz";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|