mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2024-11-13 22:53:16 +00:00
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
|
|
|
|
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.1.3";
|
|
src = builtins.fetchGit {
|
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
|
rev = "b3a37e8b1fd50457b4d48b9421d77603437e6f2f";
|
|
};
|
|
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
|