Files
nixpkgs/pkgs/by-name/ne/netbox_4_5/plugins/netbox-secrets/package.nix
2026-06-09 17:27:21 +02:00

46 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
netbox,
python,
pycryptodome,
}:
buildPythonPackage (finalAttrs: {
pname = "netbox-secrets";
version = "3.0.2";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Onemind-Services-LLC";
repo = "netbox-secrets";
tag = "v${finalAttrs.version}";
hash = "sha256-4qUbzQTfSCXT7b8DfrsP9y3tatJZa5F40kl9tuMKed4=";
};
build-system = [ setuptools ];
dependencies = [ pycryptodome ];
nativeCheckInputs = [ netbox ];
preFixup = ''
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
'';
dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion;
pythonImportsCheck = [ "netbox_secrets" ];
meta = {
description = "NetBox plugin to enhance secret management with encrypted storage and flexible, user-friendly features";
homepage = "https://github.com/Onemind-Services-LLC/netbox-secrets";
changelog = "https://github.com/Onemind-Services-LLC/netbox-secrets/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ felbinger ];
};
})