diff options
Diffstat (limited to 'pkgs/servers/web-apps/peering-manager/default.nix')
-rw-r--r-- | pkgs/servers/web-apps/peering-manager/default.nix | 42 |
1 files changed, 10 insertions, 32 deletions
diff --git a/pkgs/servers/web-apps/peering-manager/default.nix b/pkgs/servers/web-apps/peering-manager/default.nix index a16683572fa..320186855fe 100644 --- a/pkgs/servers/web-apps/peering-manager/default.nix +++ b/pkgs/servers/web-apps/peering-manager/default.nix @@ -7,47 +7,23 @@ , plugins ? ps: [] }: -let - 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 { +python3.pkgs.buildPythonApplication rec { pname = "peering-manager"; - version = "1.7.4"; + version = "1.8.2"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "v${version}"; - sha256 = "sha256-mXva4c5Rtjq/jFJl3yGGlVrggzGJ3awN0+xoDnDWBSA="; + sha256 = "sha256-He1AXfNsjVHYt2cBDjObz6sRcPbtsMotAsw+hvMrWyA="; }; format = "other"; - propagatedBuildInputs = with py.pkgs; [ + propagatedBuildInputs = with python3.pkgs; [ django djangorestframework - django-cacheops + django-redis django-debug-toolbar django-filter django-postgresql-netfields @@ -56,16 +32,18 @@ in py.pkgs.buildPythonApplication rec { django-tables2 django-taggit drf-spectacular + drf-spectacular-sidecar jinja2 markdown napalm packaging psycopg2 + pyixapi pynetbox pyyaml requests tzdata - ] ++ plugins py.pkgs; + ] ++ plugins python3.pkgs; buildPhase = '' runHook preBuild @@ -87,8 +65,8 @@ in py.pkgs.buildPythonApplication rec { passthru = { # PYTHONPATH of all dependencies used by the package - python = py; - pythonPath = py.pkgs.makePythonPath propagatedBuildInputs; + python = python3; + pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs; tests = { inherit (nixosTests) peering-manager; |