mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
42 lines
784 B
Nix
42 lines
784 B
Nix
{ lib
|
|
, aiohttp
|
|
, aioresponses
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pydeconz";
|
|
version = "79";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kane610";
|
|
repo = "deconz";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-I29UIyHjsIymZxcE084hQoyaEMTXIIQPFcB8lsxY+UI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|