Move pythonPkgs

This commit is contained in:
Inex Code 2022-08-12 21:21:25 +04:00
parent bb7641fdf4
commit 0970931614
2 changed files with 3 additions and 43 deletions

View file

@ -2,30 +2,9 @@
let
inherit pkgs;
inherit pythonPkgs;
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
}:
buildPythonPackage rec {
pythonPkgs.buildPythonPackage rec {
pname = "selfprivacy-api";
version = "1.2.6";
src = builtins.fetchGit {
@ -33,7 +12,7 @@ let
rev = "9132b70e709b19ddc393859ce23f8a5c342fa4e8";
ref = "test-branch";
};
propagatedBuildInputs = [
propagatedBuildInputs = with pythonPkgs; [
flask
flask-restful
flask-cors

View file

@ -2,27 +2,8 @@
let
inherit pkgs;
inherit pythonPkgs;
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 {
pname = "selfprivacy-graphql-api";
version = "2.0.0";
@ -31,7 +12,7 @@ let
rev = "43675b2d1d1e8b9ff3a66b47afbb73ff3de63425";
ref = "fastapi";
};
propagatedBuildInputs = [
propagatedBuildInputs = with pythonPkgs; [
setuptools
portalocker
pytz