mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.zipgy-ziggurat: init at 1.0.1
This commit is contained in:
parent
d7a978afee
commit
4ed00d743f
2 changed files with 65 additions and 0 deletions
63
pkgs/development/python-modules/zigpy-ziggurat/default.nix
Normal file
63
pkgs/development/python-modules/zigpy-ziggurat/default.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
aiohttp,
|
||||
mashumaro,
|
||||
pyprojectVersionPatchHook,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
zigpy,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "zigpy-ziggurat";
|
||||
version = "1.0.1";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zigpy";
|
||||
repo = "zigpy-ziggurat";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-/yOj4ktxEmfFCiZwJVrYqY0PXnZUi8/LwuaUgxTfBCs=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# finds version 0.0.1 instead of 1.0.1
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail ', "setuptools-git-versioning<3"' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pyprojectVersionPatchHook
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
mashumaro
|
||||
zigpy
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"zigpy_ziggurat"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Zigpy radio library for communicating with the Ziggurat stack";
|
||||
homepage = "https://github.com/zigpy/zigpy-ziggurat";
|
||||
changelog = "https://github.com/zigpy/zigpy-ziggurat/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ hexa ];
|
||||
};
|
||||
})
|
||||
|
|
@ -22297,6 +22297,8 @@ self: super: with self; {
|
|||
|
||||
zigpy-zigate = callPackage ../development/python-modules/zigpy-zigate { };
|
||||
|
||||
zigpy-ziggurat = callPackage ../development/python-modules/zigpy-ziggurat { };
|
||||
|
||||
zigpy-znp = callPackage ../development/python-modules/zigpy-znp { };
|
||||
|
||||
zimports = callPackage ../development/python-modules/zimports { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue