mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2024-11-23 12:31:28 +00:00
26 lines
994 B
Nix
26 lines
994 B
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 }:
|
|
buildPythonPackage rec {
|
|
pname = "selfprivacy-api";
|
|
version = "1.1.1";
|
|
src = builtins.fetchGit {
|
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
|
rev = "355fc68232ff6a6b530969b33b94b4b1015f12e2";
|
|
ref = "migrations-branch-fix";
|
|
};
|
|
propagatedBuildInputs = [ flask flask-restful setuptools portalocker flask-swagger flask-swagger-ui pytz pytest pytest-mock pytest-datadir huey gevent ];
|
|
meta = {
|
|
description = ''
|
|
SelfPrivacy Server Management API
|
|
'';
|
|
};
|
|
};
|
|
drv = pythonPkgs.callPackage selfprivacy-api { };
|
|
in
|
|
if pkgs.lib.inNixShell then drv.env else drv
|