mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
60 lines
1.0 KiB
Nix
60 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, gpiozero
|
|
, mock
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pyusb
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, zigpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zigpy-zigate";
|
|
version = "0.10.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zigpy";
|
|
repo = "zigpy-zigate";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-zO20ySRO9XFcDB8TkUJW2MxkhDIBpHp9Z24gupssOaY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
gpiozero
|
|
pyserial
|
|
pyserial-asyncio
|
|
pyusb
|
|
zigpy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
};
|
|
}
|