mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-29 17:30:19 +00:00
Diff: https://github.com/bitvis-io/bitvis-protobuf/compare/2.0.4...2.0.5 Changelog: https://github.com/bitvis-io/bitvis-protobuf/releases/tag/2.0.5
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
grpcio-tools,
|
|
setuptools,
|
|
wheel,
|
|
getmac,
|
|
protobuf,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "bitvis-protobuf";
|
|
version = "2.0.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bitvis-io";
|
|
repo = "bitvis-protobuf";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-kwlohD4QsWYUE3mX3V3kneGRv3vA3HaS2dCGfOftmEI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "grpcio-tools>=1.64.0,<=1.80.0" "grpcio-tools>=1.64.0"
|
|
'';
|
|
|
|
build-system = [
|
|
grpcio-tools
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
dependencies = [
|
|
getmac
|
|
protobuf
|
|
];
|
|
|
|
doCheck = false; # Upstream has no tests.
|
|
|
|
pythonImportsCheck = [
|
|
"bitvis_protobuf"
|
|
"bitvis_protobuf.cli"
|
|
];
|
|
|
|
meta = {
|
|
description = "Protobuf definitions for Bitvis Power Hub";
|
|
homepage = "https://github.com/bitvis-io/bitvis-protobuf";
|
|
changelog = "https://github.com/bitvis-io/bitvis-protobuf/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.jamiemagee ];
|
|
mainProgram = "bitvis-listen";
|
|
};
|
|
})
|