selfprivacy-nix-repo/pkgs/selfprivacy-graphql-api/default.nix

65 lines
1.4 KiB
Nix
Raw Normal View History

2023-06-13 23:54:20 +03:00
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python310Packages }:
2022-08-25 21:27:14 +03:00
let
inherit (nixpkgs) pkgs;
inherit pythonPkgs;
selfprivacy-graphql-api =
{ buildPythonPackage
, fetchPypi
, setuptools
, portalocker
, pytz
, pytest
, pytest-mock
, pytest-datadir
, huey
, gevent
, mnemonic
, pydantic
, typing-extensions
, strawberry-graphql
2022-08-25 21:27:14 +03:00
, psutil
, fastapi
, uvicorn
2022-12-30 20:34:08 +02:00
, redis
2022-08-25 21:27:14 +03:00
}:
pythonPkgs.buildPythonApplication rec {
pname = "selfprivacy-graphql-api";
2023-09-09 09:53:32 +03:00
version = "2.4.1";
2022-08-25 21:27:14 +03:00
src = builtins.fetchGit {
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
2023-09-09 09:53:32 +03:00
rev = "8b840d4c2cff45845b01a9b654654eb620f9333f";
ref = "backup-reason-fix";
2022-08-25 21:27:14 +03:00
};
propagatedBuildInputs = [
setuptools
portalocker
pytz
pytest
pytest-mock
pytest-datadir
huey
gevent
mnemonic
pydantic
typing-extensions
strawberry-graphql
2022-08-25 21:27:14 +03:00
psutil
fastapi
uvicorn
2022-12-30 20:34:08 +02:00
redis
2022-08-25 21:27:14 +03:00
];
meta = {
description = ''
SelfPrivacy Server Management API
'';
};
passthru = {
pythonPath = pythonPkgs.makePythonPath propagatedBuildInputs;
};
};
drv = pythonPkgs.callPackage selfprivacy-graphql-api { };
in
drv