Compare commits

...

26 Commits

Author SHA1 Message Date
Inex Code 0d5b0e8fa2 2.4.1 test 2023-09-09 09:53:32 +03:00
Inex Code 58b94398e1 debug 2023-08-23 15:51:16 +03:00
Inex Code 45c4cda9b7 fix 2023-08-04 14:15:31 +03:00
Inex Code e513a4376f fix 2023-08-04 14:08:34 +03:00
Inex Code 98223f0d11 test 2.3.0 2023-08-04 12:58:21 +03:00
NaiJi ✨ e56ccb74b2 chore: Update commit hash for testing 2023-07-10 07:15:09 +03:00
Inex Code 12aabacba6 upd 2023-06-29 14:27:22 +03:00
Inex Code 4bb5724a6f fix 2023-06-29 13:45:11 +03:00
Inex Code f694baf75d fix 2023-06-29 11:39:51 +03:00
Inex Code fa6a7ec995 fix 2023-06-28 15:57:11 +03:00
Inex Code 101a568dc2 fix 2023-06-28 12:42:13 +03:00
Inex Code bb5769efed fix 2023-06-28 12:10:28 +03:00
Inex Code 2ad99dc3f5 upd 2023-06-28 07:21:02 +03:00
Inex Code 71d390b498 update 2023-06-21 00:24:19 +03:00
Inex Code 92224c5f53 upd 2023-06-14 13:36:39 +03:00
Inex Code 73e816cd08 fix 2023-06-14 02:52:27 +03:00
Inex Code 8592abe56c fx 2023-06-14 01:41:15 +03:00
Inex Code ad9ed5b3da upd 2023-06-14 00:43:29 +03:00
Inex Code c3fe5d3898 register backups 2023-06-14 00:01:58 +03:00
Inex Code 6485b78f38 fix 2023-06-13 23:54:20 +03:00
Inex Code ede514b193 restic-rewrite 2023-06-13 23:27:56 +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 9 additions and 87 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

@ -1,4 +1,4 @@
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python310Packages }:
let
inherit (nixpkgs) pkgs;
@ -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.1";
src = builtins.fetchGit {
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
rev = "0a09a338b850704f221bd9b451519290584ef209";
rev = "8b840d4c2cff45845b01a9b654654eb620f9333f";
ref = "backup-reason-fix";
};
propagatedBuildInputs = [
setuptools
@ -42,10 +44,11 @@ let
mnemonic
pydantic
typing-extensions
strawberry_graphql
strawberry-graphql
psutil
fastapi
uvicorn
redis
];
meta = {
description = ''