2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
cryptography,
|
|
|
|
jinja2,
|
|
|
|
mako,
|
|
|
|
passlib,
|
|
|
|
pytest,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
rtoml,
|
|
|
|
setuptools,
|
|
|
|
tomlkit,
|
|
|
|
librouteros,
|
|
|
|
pytestCheckHook,
|
2022-11-02 22:02:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bundlewrap";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "4.19.0";
|
2023-03-15 16:39:30 +00:00
|
|
|
format = "setuptools";
|
2022-11-02 22:02:43 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-11-02 22:02:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bundlewrap";
|
|
|
|
repo = "bundlewrap";
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-sNdtJRpP54xlkYis4whoGiJJ/Tjnrs4TW6EO3eAMBAo=";
|
2022-11-02 22:02:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools
|
|
|
|
cryptography
|
|
|
|
jinja2
|
|
|
|
mako
|
|
|
|
passlib
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
tomlkit
|
|
|
|
librouteros
|
2022-12-17 10:02:37 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [ rtoml ];
|
2022-11-02 22:02:43 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "bundlewrap" ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-11-02 22:02:43 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
# only unit tests as integration tests need a OpenSSH client/server setup
|
|
|
|
"tests/unit"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://bundlewrap.org/";
|
|
|
|
description = "Easy, Concise and Decentralized Config management with Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bw";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = [ licenses.gpl3 ];
|
2022-11-02 22:02:43 +00:00
|
|
|
maintainers = with maintainers; [ wamserma ];
|
|
|
|
};
|
|
|
|
}
|