
Release notes: https://github.com/mlebreuil/netbox-contract/releases/tag/v2.4.0 Full changelog: https://github.com/mlebreuil/netbox-contract/compare/v2.3.2...v2.4.0
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
python,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
python-dateutil,
|
|
drf-yasg,
|
|
netbox,
|
|
netaddr,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "netbox-contract";
|
|
version = "2.4.0";
|
|
pyproject = true;
|
|
|
|
disabled = python.pythonVersion != netbox.python.pythonVersion;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mlebreuil";
|
|
repo = "netbox-contract";
|
|
tag = "v${version}";
|
|
hash = "sha256-duA53cuJ3q6CRp239xNMXQhGZHGn7IBIGNLoxt7hZh8=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
python-dateutil
|
|
drf-yasg
|
|
];
|
|
|
|
# running tests requires initialized django project
|
|
nativeCheckInputs = [
|
|
netbox
|
|
netaddr
|
|
];
|
|
|
|
preFixup = ''
|
|
export PYTHONPATH=${netbox}/opt/netbox/netbox:$PYTHONPATH
|
|
'';
|
|
|
|
pythonImportsCheck = [ "netbox_contract" ];
|
|
|
|
meta = {
|
|
description = "Contract plugin for netbox";
|
|
homepage = "https://github.com/mlebreuil/netbox-contract";
|
|
changelog = "https://github.com/mlebreuil/netbox-contract/releases/tag/${src.rev}";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ felbinger ];
|
|
};
|
|
}
|