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

63 lines
1.3 KiB
Nix
Raw Permalink 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
, psutil
, fastapi
, uvicorn
}:
pythonPkgs.buildPythonApplication rec {
pname = "selfprivacy-graphql-api";
2023-01-16 15:43:27 +00:00
version = "2.1.1";
2022-08-25 18:27:14 +00:00
src = builtins.fetchGit {
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
2023-01-16 15:43:27 +00:00
rev = "4e7261c9c41b2d389a5825c3d0a73f141b597d3e";
2023-01-16 15:45:10 +00:00
ref = "fix/dkim_parser";
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
psutil
fastapi
uvicorn
];
meta = {
description = ''
SelfPrivacy Server Management API
'';
};
passthru = {
pythonPath = pythonPkgs.makePythonPath propagatedBuildInputs;
};
};
drv = pythonPkgs.callPackage selfprivacy-graphql-api { };
in
drv