mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2024-12-02 03:16:38 +00:00
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
|
|
|
|
let
|
|
inherit (nixpkgs) pkgs;
|
|
inherit pythonPkgs;
|
|
|
|
selfprivacy-api =
|
|
{ buildPythonPackage
|
|
, flask
|
|
, flask-restful
|
|
, setuptools
|
|
, portalocker
|
|
, flask-swagger
|
|
, flask-swagger-ui
|
|
, pytz
|
|
, pytest
|
|
, pytest-mock
|
|
, pytest-datadir
|
|
, huey
|
|
, gevent
|
|
, mnemonic
|
|
, pydantic
|
|
, typing-extensions
|
|
, strawberry_graphql
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "selfprivacy-api";
|
|
version = "1.2.6";
|
|
src = builtins.fetchGit {
|
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
|
rev = "c20b0c94f495bb33914aed3f10250ccc5e5128fb";
|
|
ref = "graphql";
|
|
};
|
|
propagatedBuildInputs = [
|
|
flask
|
|
flask-restful
|
|
setuptools
|
|
portalocker
|
|
flask-swagger
|
|
flask-swagger-ui
|
|
pytz
|
|
pytest
|
|
pytest-mock
|
|
pytest-datadir
|
|
huey
|
|
gevent
|
|
mnemonic
|
|
strawberry_graphql
|
|
];
|
|
meta = {
|
|
description = ''
|
|
SelfPrivacy Server Management API
|
|
'';
|
|
};
|
|
};
|
|
drv = pythonPkgs.callPackage selfprivacy-api { };
|
|
in
|
|
if pkgs.lib.inNixShell then drv.env else drv
|