mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
46 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
})
|