mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 03:39:59 +00:00
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
netbox,
|
|
pytestCheckHook,
|
|
python,
|
|
django-polymorphic,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "netbox-security";
|
|
version = "1.4.5";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andy-shady-org";
|
|
repo = "netbox-security";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-DGiuQignYPSTFFm0RkDl5kwYQJNKbRdgdmIZ1DKXkGs=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ netbox ];
|
|
|
|
preFixup = ''
|
|
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
|
|
'';
|
|
|
|
dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion;
|
|
|
|
pythonImportsCheck = [ "netbox_security" ];
|
|
|
|
meta = {
|
|
description = "NetBox plugin covering various security and NAT related models";
|
|
homepage = "https://github.com/andy-shady-org/netbox-security";
|
|
changelog = "https://github.com/andy-shady-org/netbox-security/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ felbinger ];
|
|
};
|
|
})
|