Skip to content

Commit 0b83609

Browse files
python312Packages.netbox-attachments: init at 7.1.0 (#390142)
2 parents a977f81 + f19c1b2 commit 0b83609

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
pythonAtLeast,
5+
fetchFromGitHub,
6+
setuptools,
7+
netbox,
8+
}:
9+
buildPythonPackage rec {
10+
pname = "netbox-attachments";
11+
version = "7.1.0";
12+
pyproject = true;
13+
14+
disabled = pythonAtLeast "3.13";
15+
16+
src = fetchFromGitHub {
17+
owner = "Kani999";
18+
repo = "netbox-attachments";
19+
tag = version;
20+
hash = "sha256-uSp6z2jSb+kX5YspIV0essqRHGtOlZ5m0hMS6OO9Trk=";
21+
};
22+
23+
build-system = [ setuptools ];
24+
25+
nativeCheckInputs = [ netbox ];
26+
27+
preFixup = ''
28+
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
29+
'';
30+
31+
pythonImportsCheck = [ "netbox_attachments" ];
32+
33+
meta = {
34+
description = "Plugin to manage attachments for any model";
35+
homepage = "https://github.com/Kani999/netbox-attachments";
36+
changelog = "https://github.com/Kani999/netbox-attachments/releases/tag/${src.tag}";
37+
license = lib.licenses.asl20;
38+
platforms = lib.platforms.linux;
39+
maintainers = with lib.maintainers; [ felbinger ];
40+
};
41+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9685,6 +9685,8 @@ self: super: with self; {
96859685

96869686
netapp-ontap = callPackage ../development/python-modules/netapp-ontap { };
96879687

9688+
netbox-attachments = callPackage ../development/python-modules/netbox-attachments { };
9689+
96889690
netbox-bgp = callPackage ../development/python-modules/netbox-bgp { };
96899691

96909692
netbox-contract = callPackage ../development/python-modules/netbox-contract { };

0 commit comments

Comments
 (0)