depot/third_party/nixpkgs/pkgs/development/python-modules/plugwise/default.nix
Default email 8ec1fd4587 Project import generated by Copybara.
GitOrigin-RevId: 266dc8c3d052f549826ba246d06787a219533b8f
2021-03-15 09:37:03 +01:00

66 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, async-timeout
, crcmod
, defusedxml
, pyserial
, pytz
, python-dateutil
, semver
, jsonpickle
, mypy
, pytest-aiohttp
, pytest-asyncio
, pytest-cov
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "plugwise";
version = "0.9.3";
src = fetchFromGitHub {
owner = pname;
repo = "python-plugwise";
rev = version;
sha256 = "sha256-MZ4R55vGUyWmR0Md83eNerzsgtYMch1vfQ3sqbm12bM=";
};
propagatedBuildInputs = [
aiohttp
async-timeout
crcmod
defusedxml
pyserial
pytz
python-dateutil
semver
];
checkInputs = [
jsonpickle
mypy
pytest-aiohttp
pytest-asyncio
pytest-cov
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "plugwise" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Python module for Plugwise Smiles, Stretch and USB stick";
longDescription = ''
XKNX is an asynchronous Python library for reading and writing KNX/IP
packets. It provides support for KNX/IP routing and tunneling devices.
'';
homepage = "https://github.com/plugwise/python-plugwise";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}