selfprivacy-nix-repo/pkgs/selfprivacy-graphql-api/default.nix
2023-09-09 09:53:32 +03:00

65 lines
1.4 KiB
Nix

{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python310Packages }:
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
, psutil
, fastapi
, uvicorn
, redis
}:
pythonPkgs.buildPythonApplication rec {
pname = "selfprivacy-graphql-api";
version = "2.4.1";
src = builtins.fetchGit {
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
rev = "8b840d4c2cff45845b01a9b654654eb620f9333f";
ref = "backup-reason-fix";
};
propagatedBuildInputs = [
setuptools
portalocker
pytz
pytest
pytest-mock
pytest-datadir
huey
gevent
mnemonic
pydantic
typing-extensions
strawberry-graphql
psutil
fastapi
uvicorn
redis
];
meta = {
description = ''
SelfPrivacy Server Management API
'';
};
passthru = {
pythonPath = pythonPkgs.makePythonPath propagatedBuildInputs;
};
};
drv = pythonPkgs.callPackage selfprivacy-graphql-api { };
in
drv