2023-06-13 20:54:20 +00:00
|
|
|
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python310Packages }:
|
2022-08-25 18:27:14 +00: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
|
2023-03-17 11:18:59 +00:00
|
|
|
, strawberry-graphql
|
2022-08-25 18:27:14 +00:00
|
|
|
, psutil
|
|
|
|
, fastapi
|
|
|
|
, uvicorn
|
2022-12-30 18:34:08 +00:00
|
|
|
, redis
|
2022-08-25 18:27:14 +00:00
|
|
|
}:
|
|
|
|
pythonPkgs.buildPythonApplication rec {
|
|
|
|
pname = "selfprivacy-graphql-api";
|
2023-08-04 09:58:21 +00:00
|
|
|
version = "2.3.0";
|
2022-08-25 18:27:14 +00:00
|
|
|
src = builtins.fetchGit {
|
|
|
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
2023-08-04 11:08:34 +00:00
|
|
|
rev = "52336b885dfc804e93d4df4e3ad4fa0498d045d7";
|
2023-08-04 09:58:21 +00:00
|
|
|
ref = "backups-forget";
|
2022-08-25 18:27:14 +00:00
|
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
portalocker
|
|
|
|
pytz
|
|
|
|
pytest
|
|
|
|
pytest-mock
|
|
|
|
pytest-datadir
|
|
|
|
huey
|
|
|
|
gevent
|
|
|
|
mnemonic
|
|
|
|
pydantic
|
|
|
|
typing-extensions
|
2023-03-17 11:18:59 +00:00
|
|
|
strawberry-graphql
|
2022-08-25 18:27:14 +00:00
|
|
|
psutil
|
|
|
|
fastapi
|
|
|
|
uvicorn
|
2022-12-30 18:34:08 +00:00
|
|
|
redis
|
2022-08-25 18:27:14 +00:00
|
|
|
];
|
|
|
|
meta = {
|
|
|
|
description = ''
|
|
|
|
SelfPrivacy Server Management API
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
pythonPath = pythonPkgs.makePythonPath propagatedBuildInputs;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
drv = pythonPkgs.callPackage selfprivacy-graphql-api { };
|
|
|
|
in
|
|
|
|
drv
|