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

64 lines
1.3 KiB
Nix
Raw Normal View History

2022-08-25 18:27:14 +00:00
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
let
inherit (nixpkgs) pkgs;
inherit pythonPkgs;
selfprivacy-graphql-api =
{ buildPythonPackage
, fetchPypi
, setuptools
, portalocker
, pytz
, pytest
, pytest-mock
, pytest-datadir
, huey
, gevent
, mnemonic
, pydantic
, typing-extensions
, strawberry-graphql
2022-08-25 18:27:14 +00:00
, psutil
, fastapi
, uvicorn
2022-12-30 18:34:08 +00:00
, redis
2022-08-25 18:27:14 +00:00
}:
pythonPkgs.buildPythonApplication rec {
pname = "selfprivacy-graphql-api";
2023-07-20 15:44:21 +00:00
version = "2.2.0";
2022-08-25 18:27:14 +00:00
src = builtins.fetchGit {
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
2023-07-20 17:07:13 +00:00
rev = "413911849d00cf858beb81a14132973a9a3d82d4";
2022-08-25 18:27:14 +00:00
};
propagatedBuildInputs = [
setuptools
portalocker
pytz
pytest
pytest-mock
pytest-datadir
huey
gevent
mnemonic
pydantic
typing-extensions
strawberry-graphql
2022-08-25 18:27:14 +00:00
psutil
fastapi
uvicorn
2022-12-30 18:34:08 +00:00
redis
2022-08-25 18:27:14 +00:00
];
meta = {
description = ''
SelfPrivacy Server Management API
'';
};
passthru = {
pythonPath = pythonPkgs.makePythonPath propagatedBuildInputs;
};
};
drv = pythonPkgs.callPackage selfprivacy-graphql-api { };
in
drv