mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2024-11-23 04:31:26 +00:00
roll back
This commit is contained in:
parent
f991c626f8
commit
4f74abf105
|
@ -31,13 +31,11 @@ self: super: rec {
|
||||||
};
|
};
|
||||||
pythonPackages = python39.pkgs;
|
pythonPackages = python39.pkgs;
|
||||||
selfprivacy-api = super.callPackage ./pkgs/selfprivacy-api {
|
selfprivacy-api = super.callPackage ./pkgs/selfprivacy-api {
|
||||||
pkgs = pkgs;
|
nixpkgs = pkgs;
|
||||||
pythonPkgs = pythonPackages;
|
pythonPkgs = pythonPackages;
|
||||||
lib = pkgs.lib;
|
|
||||||
};
|
};
|
||||||
selfprivacy-graphql-api = super.callPackage ./pkgs/selfprivacy-graphql-api {
|
selfprivacy-graphql-api = super.callPackage ./pkgs/selfprivacy-graphql-api {
|
||||||
pkgs = pkgs;
|
nixpkgs = pkgs;
|
||||||
pythonPkgs = pythonPackages;
|
pythonPkgs = pythonPackages;
|
||||||
lib = pkgs.lib;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,30 @@
|
||||||
{ pkgs, pythonPkgs, lib }:
|
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit pkgs;
|
inherit (nixpkgs) pkgs;
|
||||||
|
inherit pythonPkgs;
|
||||||
|
|
||||||
selfprivacy-api =
|
selfprivacy-api =
|
||||||
|
{ buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, flask
|
||||||
|
, flask-restful
|
||||||
|
, flask-cors
|
||||||
|
, setuptools
|
||||||
|
, portalocker
|
||||||
|
, flask-swagger
|
||||||
|
, flask-swagger-ui
|
||||||
|
, pytz
|
||||||
|
, pytest
|
||||||
|
, pytest-mock
|
||||||
|
, pytest-datadir
|
||||||
|
, huey
|
||||||
|
, gevent
|
||||||
|
, mnemonic
|
||||||
|
, pydantic
|
||||||
|
, strawberry_graphql
|
||||||
|
, psutil
|
||||||
|
}:
|
||||||
pythonPkgs.buildPythonPackage rec {
|
pythonPkgs.buildPythonPackage rec {
|
||||||
pname = "selfprivacy-api";
|
pname = "selfprivacy-api";
|
||||||
version = "1.2.6";
|
version = "1.2.6";
|
||||||
|
@ -12,7 +33,7 @@ let
|
||||||
rev = "9132b70e709b19ddc393859ce23f8a5c342fa4e8";
|
rev = "9132b70e709b19ddc393859ce23f8a5c342fa4e8";
|
||||||
ref = "test-branch";
|
ref = "test-branch";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = with pythonPkgs; [
|
propagatedBuildInputs = [
|
||||||
flask
|
flask
|
||||||
flask-restful
|
flask-restful
|
||||||
flask-cors
|
flask-cors
|
||||||
|
@ -39,4 +60,4 @@ let
|
||||||
};
|
};
|
||||||
drv = pythonPkgs.callPackage selfprivacy-api { };
|
drv = pythonPkgs.callPackage selfprivacy-api { };
|
||||||
in
|
in
|
||||||
if lib.inNixShell then drv.env else drv
|
if pkgs.lib.inNixShell then drv.env else drv
|
||||||
|
|
|
@ -1,9 +1,28 @@
|
||||||
{ pkgs, pythonPkgs, lib }:
|
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit pkgs;
|
inherit (nixpkgs) pkgs;
|
||||||
|
inherit pythonPkgs;
|
||||||
|
|
||||||
selfprivacy-graphql-api =
|
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 {
|
pythonPkgs.buildPythonApplication rec {
|
||||||
pname = "selfprivacy-graphql-api";
|
pname = "selfprivacy-graphql-api";
|
||||||
version = "2.0.0";
|
version = "2.0.0";
|
||||||
|
@ -12,7 +31,7 @@ let
|
||||||
rev = "43675b2d1d1e8b9ff3a66b47afbb73ff3de63425";
|
rev = "43675b2d1d1e8b9ff3a66b47afbb73ff3de63425";
|
||||||
ref = "fastapi";
|
ref = "fastapi";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = with pythonPkgs; [
|
propagatedBuildInputs = [
|
||||||
setuptools
|
setuptools
|
||||||
portalocker
|
portalocker
|
||||||
pytz
|
pytz
|
||||||
|
@ -40,4 +59,4 @@ let
|
||||||
};
|
};
|
||||||
drv = pythonPkgs.callPackage selfprivacy-graphql-api { };
|
drv = pythonPkgs.callPackage selfprivacy-graphql-api { };
|
||||||
in
|
in
|
||||||
if lib.inNixShell then drv.env else drv
|
if pkgs.lib.inNixShell then drv.env else drv
|
||||||
|
|
Loading…
Reference in a new issue