peering-manager: 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:
parent
8213eb1aed
commit
aae9566b59
@ -7,31 +7,7 @@
|
|||||||
, plugins ? ps: []
|
, plugins ? ps: []
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
python3.pkgs.buildPythonApplication rec {
|
||||||
py = python3.override {
|
|
||||||
packageOverrides = final: prev: {
|
|
||||||
django = final.django_4;
|
|
||||||
drf-nested-routers = prev.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=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
});
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
in py.pkgs.buildPythonApplication rec {
|
|
||||||
pname = "peering-manager";
|
pname = "peering-manager";
|
||||||
version = "1.7.4";
|
version = "1.7.4";
|
||||||
|
|
||||||
@ -44,7 +20,7 @@ in py.pkgs.buildPythonApplication rec {
|
|||||||
|
|
||||||
format = "other";
|
format = "other";
|
||||||
|
|
||||||
propagatedBuildInputs = with py.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
django
|
django
|
||||||
djangorestframework
|
djangorestframework
|
||||||
django-cacheops
|
django-cacheops
|
||||||
@ -65,7 +41,7 @@ in py.pkgs.buildPythonApplication rec {
|
|||||||
pyyaml
|
pyyaml
|
||||||
requests
|
requests
|
||||||
tzdata
|
tzdata
|
||||||
] ++ plugins py.pkgs;
|
] ++ plugins python3.pkgs;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
@ -87,8 +63,8 @@ in py.pkgs.buildPythonApplication rec {
|
|||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
# PYTHONPATH of all dependencies used by the package
|
# PYTHONPATH of all dependencies used by the package
|
||||||
python = py;
|
python = python3;
|
||||||
pythonPath = py.pkgs.makePythonPath propagatedBuildInputs;
|
pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
|
||||||
|
|
||||||
tests = {
|
tests = {
|
||||||
inherit (nixosTests) peering-manager;
|
inherit (nixosTests) peering-manager;
|
||||||
|
Loading…
Reference in New Issue
Block a user