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:
commit
f76b3ac8f0
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -92,6 +92,7 @@
|
|||
'';
|
||||
|
||||
passthru = {
|
||||
python = python3;
|
||||
# PYTHONPATH of all dependencies used by the package
|
||||
pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
|
||||
gunicorn = python3.pkgs.gunicorn;
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue