python311Packages.universal-silabs-flasher: init at 0.0.13

https://github.com/NabuCasa/universal-silabs-flasher
This commit is contained in:
Martin Weinelt
2023-09-08 01:02:50 +02:00
parent 5646d24e0c
commit ee9e52a52e
2 changed files with 75 additions and 0 deletions
@@ -0,0 +1,73 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
, setuptools-git-versioning
, wheel
# dependencies
, async-timeout
, bellows
, click
, coloredlogs
, crc
, libgpiod
, typing-extensions
, zigpy
# tests
, pytestCheckHook
, pytest-asyncio
, pytest-mock
, pytest-timeout
}:
buildPythonPackage rec {
pname = "universal-silabs-flasher";
version = "0.0.13";
format = "pyproject";
src = fetchFromGitHub {
owner = "NabuCasa";
repo = "universal-silabs-flasher";
rev = "v${version}";
hash = "sha256-qiaDPCnVb6JQ2fZRFK+QF4o8K2UbIWGNKl5oo6MQUW0=";
};
nativeBuildInputs = [
setuptools
setuptools-git-versioning
wheel
];
propagatedBuildInputs = [
async-timeout
bellows
click
coloredlogs
crc
typing-extensions
zigpy
] ++ lib.optionals (stdenv.hostPlatform.isLinux) [
libgpiod
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-mock
pytest-timeout
];
pythonImportsCheck = [ "universal_silabs_flasher" ];
meta = with lib; {
description = "Flashes Silicon Labs radios running EmberZNet or CPC multi-pan firmware";
homepage = "https://github.com/NabuCasa/universal-silabs-flasher";
license = licenses.gpl3Only;
maintainers = with maintainers; [ hexa ];
};
}
+2
View File
@@ -13386,6 +13386,8 @@ self: super: with self; {
universal-pathlib = callPackage ../development/python-modules/universal-pathlib { };
universal-silabs-flasher = callPackage ../development/python-modules/universal-silabs-flasher { };
unpaddedbase64 = callPackage ../development/python-modules/unpaddedbase64 { };
unrardll = callPackage ../development/python-modules/unrardll { };