Compare commits

...

32 Commits

Author SHA1 Message Date
Inex Code 33e1824b11 Version 2.4.4 2024-02-23 19:01:18 +03:00
Inex Code 53c9bd9078 upd 2024-01-19 14:49:48 +03:00
Inex Code aeaaca671c upd 2024-01-08 22:27:16 +03:00
Inex Code dd7febbbc7 check for free space 2024-01-08 22:23:25 +03:00
Inex Code 20ef6c761f update 2023-12-31 18:32:50 +03:00
Inex Code 4028e65675 fix 2023-12-31 18:14:59 +03:00
Inex Code 3e037d7aec fix 2023-12-31 18:08:48 +03:00
Inex Code 2a7d8a2931 fix 2023-12-31 18:06:10 +03:00
Inex Code 4bb76a99cd fix 2023-12-31 18:03:19 +03:00
Inex Code 7969251da2 fix 2023-12-31 17:56:48 +03:00
Inex Code a928592a53 fix 2023-12-31 17:50:10 +03:00
Inex Code 862485f047 update 2023-12-31 17:39:29 +03:00
Inex Code cc25365e87 fix 2023-12-29 17:26:09 +03:00
Inex Code 01b66aff55 test migration 2023-12-29 17:24:58 +03:00
Inex Code 11135b5d28 API Version 2.4.3 2023-12-25 10:44:01 +03:00
Inex Code 5509bf1c84 API version 2.4.2 2023-10-09 12:51:11 +03:00
Inex Code 61cc26d67c API version 2.4.1 2023-09-09 09:56:37 +03:00
Inex Code febe29ff8b API version 2.4.0 2023-09-09 03:53:15 +03:00
Inex Code 6b603846da Revert "API version 2.3.1"
This reverts commit a5184a3f48.
2023-08-23 15:26:02 +03:00
Inex Code a5184a3f48 API version 2.3.1 2023-08-23 15:02:08 +03:00
Inex Code 70e09ecd39 API version 2.3.0 2023-08-14 05:30:28 +03:00
Inex Code 866bff7c41 remove legacy backups 2023-07-20 20:12:03 +03:00
Inex Code 4ec3f56d8d fix calls to legacy api 2023-07-20 20:07:13 +03:00
Inex Code 871e7b82d8 hotfix 2023-07-20 19:43:07 +03:00
Inex Code 8f7e017311 hotfix 2023-07-20 19:39:36 +03:00
Inex Code d38f1b3d18 API version 2.2.0 2023-07-20 18:44:21 +03:00
Inex Code 1ac54cdc50 API version 2.1.3 2023-06-14 19:28:08 +03:00
Inex Code a5b2538829 API 2.1.2 2023-05-30 18:28:05 +03:00
Inex Code 6bcfa9452f refactor: Simplify overlay, move to NixOS 22.11 2023-03-17 14:43:32 +03:00
Inex Code 746e8ad4ec API release 2.1.1 2023-01-16 18:49:32 +03:00
Inex Code 4958fa8f84 fix: module not found 2022-12-30 21:40:03 +03:00
Inex Code de5ed98a5c API 2.1.0 2022-12-30 21:34:08 +03:00
3 changed files with 8 additions and 86 deletions

View File

@ -3,36 +3,8 @@ let
in
self: super: rec {
python39 = super.python39.override {
packageOverrides = python-self: python-super: {
strawberry_graphql = python-super.buildPythonPackage rec {
pname = "strawberry-graphql";
version = "0.123.0";
format = "pyproject";
patches = [
./strawberry-graphql.patch
];
propagatedBuildInputs = with self.python39Packages; [
typing-extensions
graphql-core
python-multipart
python-dateutil
flask
pydantic
pygments
poetry
];
src = python-super.fetchPypi {
inherit pname version;
sha256 = "sha256-KsmZ5Xv8tUg6yBxieAEtvoKoRG60VS+iVGV0X6oCExo=";
};
};
};
};
pythonPackages = python39.pkgs;
selfprivacy-api = super.callPackage ./pkgs/selfprivacy-api {};
selfprivacy-graphql-api = super.callPackage ./pkgs/selfprivacy-graphql-api {
nixpkgs = pkgs;
pythonPkgs = pythonPackages;
pythonPkgs = super.python310Packages;
};
}

View File

@ -1,53 +0,0 @@
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
let
inherit (nixpkgs) pkgs;
inherit pythonPkgs;
selfprivacy-api =
{ buildPythonPackage
, flask
, flask-restful
, setuptools
, portalocker
, flask-swagger
, flask-swagger-ui
, pytz
, pytest
, pytest-mock
, pytest-datadir
, huey
, gevent
, mnemonic
}:
buildPythonPackage rec {
pname = "selfprivacy-api";
version = "1.2.6";
src = builtins.fetchGit {
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
rev = "401dff23fb9223e8a0a4bd3ee942c61e471a07ab";
};
propagatedBuildInputs = [
flask
flask-restful
setuptools
portalocker
flask-swagger
flask-swagger-ui
pytz
pytest
pytest-mock
pytest-datadir
huey
gevent
mnemonic
];
meta = {
description = ''
SelfPrivacy Server Management API
'';
};
};
drv = pythonPkgs.callPackage selfprivacy-api { };
in
if pkgs.lib.inNixShell then drv.env else drv

View File

@ -18,17 +18,19 @@ let
, mnemonic
, pydantic
, typing-extensions
, strawberry_graphql
, strawberry-graphql
, psutil
, fastapi
, uvicorn
, redis
}:
pythonPkgs.buildPythonApplication rec {
pname = "selfprivacy-graphql-api";
version = "2.0.9";
version = "2.4.4";
src = builtins.fetchGit {
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
rev = "0a09a338b850704f221bd9b451519290584ef209";
rev = "cc24d0fd51f857b9eff8ac2d7bac9028ed562805";
ref = "test-migration";
};
propagatedBuildInputs = [
setuptools
@ -42,10 +44,11 @@ let
mnemonic
pydantic
typing-extensions
strawberry_graphql
strawberry-graphql
psutil
fastapi
uvicorn
redis
];
meta = {
description = ''