2022-08-12 15:28:11 +00:00
|
|
|
{ pkgs, pythonPkgs, lib }:
|
2021-11-17 12:42:28 +00:00
|
|
|
|
|
|
|
let
|
2022-08-12 15:22:00 +00:00
|
|
|
inherit pkgs;
|
2021-11-17 12:42:28 +00:00
|
|
|
|
2022-01-26 15:06:43 +00:00
|
|
|
selfprivacy-api =
|
2022-08-12 17:21:25 +00:00
|
|
|
pythonPkgs.buildPythonPackage rec {
|
2021-11-17 12:42:28 +00:00
|
|
|
pname = "selfprivacy-api";
|
2022-06-24 15:14:21 +00:00
|
|
|
version = "1.2.6";
|
2021-11-17 12:42:28 +00:00
|
|
|
src = builtins.fetchGit {
|
2021-11-17 17:29:10 +00:00
|
|
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
2022-08-03 11:06:45 +00:00
|
|
|
rev = "9132b70e709b19ddc393859ce23f8a5c342fa4e8";
|
2022-08-02 19:50:49 +00:00
|
|
|
ref = "test-branch";
|
2021-11-17 12:42:28 +00:00
|
|
|
};
|
2022-08-12 17:21:25 +00:00
|
|
|
propagatedBuildInputs = with pythonPkgs; [
|
2022-01-26 15:06:43 +00:00
|
|
|
flask
|
|
|
|
flask-restful
|
2022-06-24 17:26:17 +00:00
|
|
|
flask-cors
|
2022-01-26 15:06:43 +00:00
|
|
|
setuptools
|
|
|
|
portalocker
|
|
|
|
flask-swagger
|
|
|
|
flask-swagger-ui
|
|
|
|
pytz
|
|
|
|
pytest
|
|
|
|
pytest-mock
|
|
|
|
pytest-datadir
|
|
|
|
huey
|
|
|
|
gevent
|
|
|
|
mnemonic
|
2022-06-24 14:04:25 +00:00
|
|
|
pydantic
|
2022-06-24 14:25:03 +00:00
|
|
|
strawberry_graphql
|
2022-07-25 14:09:17 +00:00
|
|
|
psutil
|
2022-01-26 15:06:43 +00:00
|
|
|
];
|
2021-11-17 12:42:28 +00:00
|
|
|
meta = {
|
|
|
|
description = ''
|
|
|
|
SelfPrivacy Server Management API
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
drv = pythonPkgs.callPackage selfprivacy-api { };
|
|
|
|
in
|
2022-08-12 15:28:11 +00:00
|
|
|
if lib.inNixShell then drv.env else drv
|