mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2024-11-23 12:31:28 +00:00
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
|
|
|
|
let
|
|
inherit (nixpkgs) pkgs;
|
|
inherit pythonPkgs;
|
|
|
|
selfprivacy-api =
|
|
{ buildPythonPackage
|
|
, 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";
|
|
version = "1.2.6";
|
|
src = builtins.fetchGit {
|
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
|
rev = "5e62798fde49776cb09cc1d1305305126f996fb3";
|
|
ref = "test-branch";
|
|
};
|
|
propagatedBuildInputs = [
|
|
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
|
|
];
|
|
meta = {
|
|
description = ''
|
|
SelfPrivacy Server Management API
|
|
'';
|
|
};
|
|
};
|
|
drv = pythonPkgs.callPackage selfprivacy-api { };
|
|
in
|
|
if pkgs.lib.inNixShell then drv.env else drv
|