1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
bcrypt,
cryptography,
jinja2,
librouteros,
mako,
packaging,
pyyaml,
requests,
setuptools,
tomlkit,
pytestCheckHook,
versionCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "bundlewrap";
version = "5.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bundlewrap";
repo = "bundlewrap";
tag = finalAttrs.version;
hash = "sha256-b3ItcHabmxIFha6ryMOFXCSvHJrhQ2/dR3EXbxElWpg=";
};
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 ];
};
})
|