mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-02 02:38:44 +00:00
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
ifaddr,
|
|
mcp,
|
|
nix-update-script,
|
|
pydantic,
|
|
pyprojectVersionPatchHook,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
python-libpcap,
|
|
pyyaml,
|
|
rdflib,
|
|
websockets,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "bacpypes3";
|
|
version = "0.0.110";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JoelBender";
|
|
repo = "bacpypes3";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-dzZz3EYMbF1RNwANoKzKKwCezeX0tgD5dR3BQ2h4lTY=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
nativeBuildInputs = [ pyprojectVersionPatchHook ];
|
|
|
|
optional-dependencies = {
|
|
ifaddr = [ ifaddr ];
|
|
mcp = [
|
|
mcp
|
|
pydantic
|
|
];
|
|
pylibpcap = [ python-libpcap ];
|
|
rdflib = [ rdflib ];
|
|
websockets = [ websockets ];
|
|
yaml = [ pyyaml ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
]
|
|
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
|
|
|
|
pythonImportsCheck = [ "bacpypes3" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "BACnet communications library";
|
|
homepage = "https://github.com/JoelBender/bacpypes3";
|
|
changelog = "https://github.com/JoelBender/bacpypes3/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|