2021-11-17 12:42:28 +00:00
|
|
|
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (nixpkgs) pkgs;
|
|
|
|
inherit pythonPkgs;
|
|
|
|
|
2022-01-26 15:06:43 +00:00
|
|
|
selfprivacy-api =
|
|
|
|
{ buildPythonPackage
|
2022-06-24 13:55:54 +00:00
|
|
|
, fetchPypi
|
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 13:37:00 +00:00
|
|
|
, pydantic
|
2022-06-24 14:26:33 +00:00
|
|
|
, strawberry_graphql
|
2022-01-26 15:06:43 +00:00
|
|
|
}:
|
2021-11-17 12:42:28 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
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-06-24 18:18:35 +00:00
|
|
|
rev = "45c3e3003d01941ccca61846e81b591f8b7d7992";
|
2022-06-24 13:06:48 +00:00
|
|
|
ref = "graphql";
|
2021-11-17 12:42:28 +00:00
|
|
|
};
|
2022-01-26 15:06:43 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
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-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
|
|
|
|
if pkgs.lib.inNixShell then drv.env else drv
|