netbox: remove unnecessary python overrides

The drf-nested-routers patches are already applied globally in our
drf-nested-routers package. django 4 is already the default.
This commit is contained in:
Yureka 2023-09-25 23:10:34 +02:00
parent a0d332ad7f
commit 8213eb1aed

View File

@ -11,32 +11,9 @@
, eol ? false
}:
let
py = python3 // {
pkgs = python3.pkgs.overrideScope (self: super: {
django = super.django_4;
drf-nested-routers = super.drf-nested-routers.overridePythonAttrs (_oldAttrs: {
patches = [
# all for django 4 compat
(fetchpatch {
url = "https://github.com/alanjds/drf-nested-routers/commit/59764cc356f7f593422b26845a9dfac0ad196120.diff";
hash = "sha256-mq3vLHzQlGl2EReJ5mVVQMMcYgGIVt/T+qi1STtQ0aI=";
})
(fetchpatch {
url = "https://github.com/alanjds/drf-nested-routers/commit/723a5729dd2ffcb66fe315f229789ca454986fa4.diff";
hash = "sha256-UCbBjwlidqsJ9vEEWlGzfqqMOr0xuB2TAaUxHsLzFfU=";
})
(fetchpatch {
url = "https://github.com/alanjds/drf-nested-routers/commit/38e49eb73759bc7dcaaa9166169590f5315e1278.diff";
hash = "sha256-IW4BLhHHhXDUZqHaXg46qWoQ89pMXv0ZxKjOCTnDcI0=";
})
];
});
});
};
extraBuildInputs = plugins py.pkgs;
extraBuildInputs = plugins python3.pkgs;
in
py.pkgs.buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "netbox";
inherit version;
@ -51,7 +28,7 @@
patches = extraPatches;
propagatedBuildInputs = with py.pkgs; [
propagatedBuildInputs = with python3.pkgs; [
bleach
boto3
django_4
@ -90,7 +67,7 @@
jsonschema
] ++ extraBuildInputs;
buildInputs = with py.pkgs; [
buildInputs = with python3.pkgs; [
mkdocs-material
mkdocs-material-extensions
mkdocstrings
@ -98,7 +75,7 @@
];
nativeBuildInputs = [
py.pkgs.mkdocs
python3.pkgs.mkdocs
];
postBuild = ''