selfprivacy-nix-repo/pkgs/selfprivacy-graphql-api/default.nix

63 lines
1.3 KiB
Nix
Raw Normal View History

2022-08-12 20:35:42 +03:00
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
2022-08-12 15:12:02 +03:00
let
2022-08-12 20:35:42 +03:00
inherit (nixpkgs) pkgs;
inherit pythonPkgs;
2022-08-12 15:12:02 +03:00
selfprivacy-graphql-api =
2022-08-12 20:35:42 +03:00
{ buildPythonPackage
, fetchPypi
, setuptools
, portalocker
, pytz
, pytest
, pytest-mock
, pytest-datadir
, huey
, gevent
, mnemonic
, pydantic
, typing-extensions
, strawberry_graphql
, psutil
, fastapi
, uvicorn
}:
2022-08-12 16:48:24 +03:00
pythonPkgs.buildPythonApplication rec {
2022-08-12 15:12:02 +03:00
pname = "selfprivacy-graphql-api";
version = "2.0.0";
src = builtins.fetchGit {
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
2022-08-24 02:05:38 +03:00
rev = "15a900d009720eea660d2c41f4122722661d1903";
2022-08-12 16:51:36 +03:00
ref = "fastapi";
2022-08-12 15:12:02 +03:00
};
2022-08-12 20:35:42 +03:00
propagatedBuildInputs = [
2022-08-12 15:12:02 +03:00
setuptools
portalocker
pytz
pytest
pytest-mock
pytest-datadir
huey
gevent
mnemonic
pydantic
typing-extensions
strawberry_graphql
psutil
fastapi
uvicorn
];
meta = {
description = ''
SelfPrivacy Server Management API
'';
};
2022-08-13 02:52:08 +03:00
passthru = {
pythonPath = pythonPkgs.makePythonPath propagatedBuildInputs;
};
2022-08-12 15:12:02 +03:00
};
drv = pythonPkgs.callPackage selfprivacy-graphql-api { };
in
2022-08-15 22:07:10 +03:00
drv