mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2024-12-02 03:16:38 +00:00
43 lines
958 B
Nix
43 lines
958 B
Nix
{ pkgs, pythonPkgs, lib }:
|
|
|
|
let
|
|
inherit pkgs;
|
|
|
|
selfprivacy-api =
|
|
pythonPkgs.buildPythonPackage rec {
|
|
pname = "selfprivacy-api";
|
|
version = "1.2.6";
|
|
src = builtins.fetchGit {
|
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
|
rev = "9132b70e709b19ddc393859ce23f8a5c342fa4e8";
|
|
ref = "test-branch";
|
|
};
|
|
propagatedBuildInputs = with pythonPkgs; [
|
|
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 lib.inNixShell then drv.env else drv
|