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

View file

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