nixpkgs/pkgs/development/python-modules/pydeconz/default.nix

42 lines
784 B
Nix
Raw Normal View History

2021-03-22 23:08:39 +00:00
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
2021-04-29 07:40:29 +00:00
, pytest-aiohttp
2021-03-22 23:08:39 +00:00
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pydeconz";
2021-04-29 07:40:29 +00:00
version = "79";
2021-03-22 23:08:39 +00:00
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Kane610";
repo = "deconz";
rev = "v${version}";
2021-04-29 07:40:29 +00:00
sha256 = "sha256-I29UIyHjsIymZxcE084hQoyaEMTXIIQPFcB8lsxY+UI=";
2021-03-22 23:08:39 +00:00
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aioresponses
2021-04-29 07:40:29 +00: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 ];
};
}