mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2024-11-30 07:51:27 +00:00
60 lines
1.3 KiB
Nix
60 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
|
||
|
}:
|
||
|
buildPythonPackage rec {
|
||
|
pname = "selfprivacy-graphql-api";
|
||
|
version = "2.0.0";
|
||
|
src = builtins.fetchGit {
|
||
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
||
|
rev = "a96f6bd06733199cf4af3b05acdce1f1d43c85c2";
|
||
|
ref = "graphql";
|
||
|
};
|
||
|
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
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
drv = pythonPkgs.callPackage selfprivacy-graphql-api { };
|
||
|
in
|
||
|
if pkgs.lib.inNixShell then drv.env else drv
|