package: buildPythonApplication => buildPythonPackage

This commit is contained in:
Alexander Tomokhov 2023-11-23 02:42:38 +04:00
parent 2bbc2be6b5
commit d020820d26

View file

@ -1,9 +1,10 @@
{ pythonPackages, rev ? "local" }: { pythonPackages, rev ? "local" }:
pythonPackages.buildPythonApplication rec { pythonPackages.buildPythonPackage rec {
pname = "selfprivacy-graphql-api"; pname = "selfprivacy-graphql-api";
version = rev; version = rev;
src = builtins.filterSource (p: t: p != ".git" && t != "symlink") ./.; src = builtins.filterSource (p: t: p != ".git" && t != "symlink") ./.;
nativeCheckInputs = [ pythonPackages.pytestCheckHook ];
propagatedBuildInputs = with pythonPackages; [ propagatedBuildInputs = with pythonPackages; [
fastapi fastapi
gevent gevent
@ -22,6 +23,8 @@ pythonPackages.buildPythonApplication rec {
typing-extensions typing-extensions
uvicorn uvicorn
]; ];
pythonImportsCheck = [ "selfprivacy_api" ];
doCheck = true;
meta = { meta = {
description = '' description = ''
SelfPrivacy Server Management API SelfPrivacy Server Management API