mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
c16c6d5b5d
https://github.com/zigpy/zigpy/releases/tag/0.50.2 https://github.com/zigpy/zigpy/releases/tag/0.50.1 https://github.com/zigpy/zigpy/releases/tag/0.50.0
66 lines
1.1 KiB
Nix
66 lines
1.1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aiosqlite
|
|
, asynctest
|
|
, buildPythonPackage
|
|
, crccheck
|
|
, cryptography
|
|
, freezegun
|
|
, fetchFromGitHub
|
|
, pycryptodome
|
|
, pytest-aiohttp
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, voluptuous
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zigpy";
|
|
version = "0.50.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zigpy";
|
|
repo = "zigpy";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-0Ha2CgJLLLZjMEEj07GL6kbKcM+x0YblVIjABiaAhXg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
aiosqlite
|
|
crccheck
|
|
cryptography
|
|
pycryptodome
|
|
voluptuous
|
|
];
|
|
|
|
checkInputs = [
|
|
freezegun
|
|
pytest-aiohttp
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
asynctest
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"zigpy.application"
|
|
"zigpy.config"
|
|
"zigpy.exceptions"
|
|
"zigpy.types"
|
|
"zigpy.zcl"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library implementing a ZigBee stack";
|
|
homepage = "https://github.com/zigpy/zigpy";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|