mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
netbox_4_6.plugins.netbox-documents: init at 0.8.5
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
drf-extra-fields,
|
||||
python,
|
||||
netbox,
|
||||
}:
|
||||
buildPythonPackage (finalAttrs: {
|
||||
__structuredAttrs = true;
|
||||
|
||||
pname = "netbox-documents";
|
||||
version = "0.8.5";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jasonyates";
|
||||
repo = "netbox-documents";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-hupJ5gbRj/70oslEosob4gT2y2le5vOrq30t3NWl0nQ=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ drf-extra-fields ];
|
||||
|
||||
nativeCheckInputs = [ netbox ];
|
||||
|
||||
preFixup = ''
|
||||
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
|
||||
'';
|
||||
|
||||
dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion;
|
||||
pythonImportsCheck = [ "netbox_documents" ];
|
||||
|
||||
passthru.pluginName = "netbox_documents";
|
||||
|
||||
meta = {
|
||||
description = "Plugin designed to faciliate the storage of site, circuit, device type and device specific documents within NetBox";
|
||||
homepage = "https://github.com/jasonyates/netbox-documents";
|
||||
changelog = "https://github.com/jasonyates/netbox-documents/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ felbinger ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user