mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2024-11-23 04:31:26 +00:00
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{ pkgs, pythonPkgs }:
|
|
|
|
let
|
|
inherit pkgs;
|
|
inherit pythonPkgs;
|
|
|
|
selfprivacy-graphql-api =
|
|
{ buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
, portalocker
|
|
, pytz
|
|
, pytest
|
|
, pytest-mock
|
|
, pytest-datadir
|
|
, huey
|
|
, gevent
|
|
, mnemonic
|
|
, pydantic
|
|
, typing-extensions
|
|
, strawberry_graphql
|
|
, psutil
|
|
, fastapi
|
|
, uvicorn
|
|
}:
|
|
pythonPkgs.buildPythonApplication rec {
|
|
pname = "selfprivacy-graphql-api";
|
|
version = "2.0.0";
|
|
src = builtins.fetchGit {
|
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
|
rev = "43675b2d1d1e8b9ff3a66b47afbb73ff3de63425";
|
|
ref = "fastapi";
|
|
};
|
|
propagatedBuildInputs = [
|
|
setuptools
|
|
portalocker
|
|
pytz
|
|
pytest
|
|
pytest-mock
|
|
pytest-datadir
|
|
huey
|
|
gevent
|
|
mnemonic
|
|
pydantic
|
|
typing-extensions
|
|
strawberry_graphql
|
|
psutil
|
|
fastapi
|
|
uvicorn
|
|
];
|
|
meta = {
|
|
description = ''
|
|
SelfPrivacy Server Management API
|
|
'';
|
|
};
|
|
passthru = {
|
|
pythonPath = pythonPkgs.makePythonPath propagatedBuildInputs;
|
|
};
|
|
};
|
|
drv = pythonPkgs.callPackage selfprivacy-graphql-api { };
|
|
in
|
|
if pkgs.lib.inNixShell then drv.env else drv
|