mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2024-11-16 07:43:17 +00:00
54 lines
1.1 KiB
Nix
54 lines
1.1 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
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "selfprivacy-api";
|
|
version = "1.2.3";
|
|
src = builtins.fetchGit {
|
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
|
rev = "c0c9c1e89ec58533cc0f338449020fbbe6939411";
|
|
};
|
|
propagatedBuildInputs = [
|
|
flask
|
|
flask-restful
|
|
setuptools
|
|
portalocker
|
|
flask-swagger
|
|
flask-swagger-ui
|
|
pytz
|
|
pytest
|
|
pytest-mock
|
|
pytest-datadir
|
|
huey
|
|
gevent
|
|
mnemonic
|
|
];
|
|
meta = {
|
|
description = ''
|
|
SelfPrivacy Server Management API
|
|
'';
|
|
};
|
|
};
|
|
drv = pythonPkgs.callPackage selfprivacy-api { };
|
|
in
|
|
if pkgs.lib.inNixShell then drv.env else drv
|