2022-08-25 18:27:14 +00:00
|
|
|
{ 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
|
|
|
|
}:
|
|
|
|
pythonPkgs.buildPythonApplication rec {
|
|
|
|
pname = "selfprivacy-graphql-api";
|
2022-09-22 16:39:20 +00:00
|
|
|
version = "2.0.9";
|
2022-08-25 18:27:14 +00:00
|
|
|
src = builtins.fetchGit {
|
|
|
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
2022-09-22 16:42:02 +00:00
|
|
|
rev = "0a09a338b850704f221bd9b451519290584ef209";
|
2022-08-25 18:27:14 +00:00
|
|
|
};
|
|
|
|
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
|
|
|
|
drv
|