Move to buildPythonApplication

test-upstream-strawberry
inexcode 2022-08-12 17:43:34 +04:00
parent 1a3b6c8782
commit 24b20043a1
1 changed files with 5 additions and 2 deletions

View File

@ -23,12 +23,12 @@ let
, fastapi , fastapi
, uvicorn , uvicorn
}: }:
buildPythonPackage rec { buildPythonApplication rec {
pname = "selfprivacy-graphql-api"; pname = "selfprivacy-graphql-api";
version = "2.0.0"; version = "2.0.0";
src = builtins.fetchGit { src = builtins.fetchGit {
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git"; url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
rev = "a96f6bd06733199cf4af3b05acdce1f1d43c85c2"; rev = "43675b2d1d1e8b9ff3a66b47afbb73ff3de63425";
ref = "graphql"; ref = "graphql";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -53,6 +53,9 @@ let
SelfPrivacy Server Management API SelfPrivacy Server Management API
''; '';
}; };
passthru = {
pythonPath = python.pkgs.makePythonPath propagatedBuildInputs;
};
}; };
drv = pythonPkgs.callPackage selfprivacy-graphql-api { }; drv = pythonPkgs.callPackage selfprivacy-graphql-api { };
in in