Files
nixpkgs/pkgs/development/python-modules/bundlewrap/default.nix
T
2026-02-25 14:07:32 +01:00

67 lines
1.3 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
bcrypt,
cryptography,
jinja2,
librouteros,
mako,
packaging,
pyyaml,
requests,
setuptools,
tomlkit,
pytestCheckHook,
versionCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "bundlewrap";
version = "5.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "bundlewrap";
repo = "bundlewrap";
tag = finalAttrs.version;
hash = "sha256-kU76WvT4VE/78HTMjByoDHgkrg/5MlS5vnc6z6lAANw=";
};
build-system = [ setuptools ];
dependencies = [
bcrypt
cryptography
jinja2
mako
packaging
pyyaml
requests
tomlkit
librouteros
];
pythonImportsCheck = [ "bundlewrap" ];
nativeCheckInputs = [
pytestCheckHook
versionCheckHook
];
versionCheckProgram = "${placeholder "out"}/bin/bw";
enabledTestPaths = [
# only unit tests as integration tests need a OpenSSH client/server setup
"tests/unit"
];
meta = {
homepage = "https://bundlewrap.org/";
description = "Easy, Concise and Decentralized Config management with Python";
changelog = "https://github.com/bundlewrap/bundlewrap/blob/${finalAttrs.src.tag}/CHANGELOG.md";
mainProgram = "bw";
license = [ lib.licenses.gpl3 ];
maintainers = with lib.maintainers; [ wamserma ];
};
})