depot/third_party/nixpkgs/pkgs/development/python-modules/bundlewrap/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

62 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
cryptography,
jinja2,
mako,
passlib,
pyyaml,
requests,
rtoml,
setuptools,
tomlkit,
librouteros,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "bundlewrap";
version = "4.20.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "bundlewrap";
repo = "bundlewrap";
rev = "refs/tags/${version}";
hash = "sha256-GoMOEPZb7efFoZn7D2y1XO4XtP9z+1EmakLvSxcCT8I=";
};
build-system = [ setuptools ];
dependencies = [
setuptools
cryptography
jinja2
mako
passlib
pyyaml
requests
tomlkit
librouteros
] ++ lib.optionals (pythonOlder "3.11") [ rtoml ];
pythonImportsCheck = [ "bundlewrap" ];
nativeCheckInputs = [ pytestCheckHook ];
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";
mainProgram = "bw";
license = [ licenses.gpl3 ];
maintainers = with maintainers; [ wamserma ];
};
}