1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Merge pull request #311657 from minijackson/init-netbox-reorder-rack

This commit is contained in:
Sandro 2024-07-10 16:42:03 +02:00 committed by GitHub
commit f76b3ac8f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
netbox,
python,
}:
buildPythonPackage rec {
pname = "netbox-reorder-rack";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "netbox-community";
repo = "netbox-reorder-rack";
rev = "v${version}";
hash = "sha256-UbTq3DHxSczDxQIUyAHCVJG3SZdqgyS9ULNvuDKQvEY=";
};
build-system = [
setuptools
];
checkInputs = [ netbox ];
preFixup = ''
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
'';
dontUsePythonImportsCheck = python.pythonVersion != netbox.python.pythonVersion;
pythonImportsCheck = [ "netbox_reorder_rack" ];
meta = with lib; {
description = "NetBox plugin to allow users to reorder devices within a rack using a drag and drop UI";
homepage = "https://github.com/minitriga/netbox-reorder-rack/";
license = licenses.asl20;
maintainers = with maintainers; [ minijackson ];
};
}

View file

@ -92,6 +92,7 @@
'';
passthru = {
python = python3;
# PYTHONPATH of all dependencies used by the package
pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
gunicorn = python3.pkgs.gunicorn;

View file

@ -8870,6 +8870,8 @@ self: super: with self; {
netapp-ontap = callPackage ../development/python-modules/netapp-ontap { };
netbox-reorder-rack = callPackage ../development/python-modules/netbox-reorder-rack { };
netcdf4 = callPackage ../development/python-modules/netcdf4 { };
netdata = callPackage ../development/python-modules/netdata { };