From 24b20043a11b157db744117404339a023145d5f8 Mon Sep 17 00:00:00 2001 From: inexcode Date: Fri, 12 Aug 2022 17:43:34 +0400 Subject: [PATCH] Move to buildPythonApplication --- pkgs/selfprivacy-graphql-api/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/selfprivacy-graphql-api/default.nix b/pkgs/selfprivacy-graphql-api/default.nix index db0995e..d726d1d 100644 --- a/pkgs/selfprivacy-graphql-api/default.nix +++ b/pkgs/selfprivacy-graphql-api/default.nix @@ -23,12 +23,12 @@ let , fastapi , uvicorn }: - buildPythonPackage rec { + buildPythonApplication rec { pname = "selfprivacy-graphql-api"; version = "2.0.0"; src = builtins.fetchGit { url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git"; - rev = "a96f6bd06733199cf4af3b05acdce1f1d43c85c2"; + rev = "43675b2d1d1e8b9ff3a66b47afbb73ff3de63425"; ref = "graphql"; }; propagatedBuildInputs = [ @@ -53,6 +53,9 @@ let SelfPrivacy Server Management API ''; }; + passthru = { + pythonPath = python.pkgs.makePythonPath propagatedBuildInputs; + }; }; drv = pythonPkgs.callPackage selfprivacy-graphql-api { }; in