2021-11-17 12:42:28 +00:00
|
|
|
{ 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 }:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "selfprivacy-api";
|
|
|
|
version = "1.1";
|
|
|
|
src = builtins.fetchGit {
|
2021-11-17 17:29:10 +00:00
|
|
|
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
|
2021-11-18 18:56:23 +00:00
|
|
|
rev = "eb4f25285da247e324417d67f6c0cd24a7b93fbe";
|
2021-11-17 12:42:28 +00:00
|
|
|
};
|
|
|
|
propagatedBuildInputs = [ flask flask-restful setuptools portalocker flask-swagger flask-swagger-ui ];
|
|
|
|
meta = {
|
|
|
|
description = ''
|
|
|
|
SelfPrivacy Server Management API
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
drv = pythonPkgs.callPackage selfprivacy-api { };
|
|
|
|
in
|
|
|
|
if pkgs.lib.inNixShell then drv.env else drv
|