73a29e0b97
GitOrigin-RevId: 5bb20f9dc70e9ee16e21cc404b6508654931ce41
45 lines
816 B
Nix
45 lines
816 B
Nix
{ lib
|
|
, aiohttp
|
|
, aioresponses
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pydeconz";
|
|
version = "86";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kane610";
|
|
repo = "deconz";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-NqNXbF5rGMCbugzZY+AQPPHYmQx/RrSwqtnoF1shSSU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
];
|
|
|
|
checkInputs = [
|
|
aioresponses
|
|
pytest-aiohttp
|
|
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 ];
|
|
};
|
|
}
|