depot/third_party/nixpkgs/pkgs/development/python-modules/zigpy-zigate/default.nix
Default email c6ca5b8f13 Project import generated by Copybara.
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
2022-07-18 18:21:45 +02:00

57 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pyserial
, pyserial-asyncio
, pyusb
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, zigpy
}:
buildPythonPackage rec {
pname = "zigpy-zigate";
version = "0.9.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "zigpy";
repo = "zigpy-zigate";
rev = "v${version}";
hash = "sha256-rFmcgfn87XS1fvbSdJG6pItXRMkeogp4faKMe7pCxkM=";
};
propagatedBuildInputs = [
pyserial
pyserial-asyncio
pyusb
zigpy
];
checkInputs = [
mock
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"zigpy_zigate"
];
disabledTestPaths = [
# Fails in sandbox
"tests/test_application.py "
];
meta = with lib; {
description = "Library which communicates with ZiGate radios for zigpy";
homepage = "https://github.com/zigpy/zigpy-zigate";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ mvnetbiz ];
platforms = platforms.linux;
};
}