mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-29 22:11:27 +00:00
25 lines
776 B
Nix
25 lines
776 B
Nix
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
|
|
|
|
let
|
|
inherit (nixpkgs) pkgs;
|
|
inherit pythonPkgs;
|
|
|
|
selfprivacy-api = { buildPythonPackage, flask, flask-restful, setuptools, portalocker }:
|
|
buildPythonPackage rec {
|
|
pname = "selfprivacy-api";
|
|
version = "1.1";
|
|
src = builtins.fetchGit {
|
|
url = "https://git.selfprivacy.org/ilchub/selfprivacy-rest-api.git";
|
|
rev = "dbb4c1095654bba88d4f0c91b7b195d5262976b6";
|
|
};
|
|
propagatedBuildInputs = [ flask flask-restful setuptools portalocker ];
|
|
meta = {
|
|
description = ''
|
|
SelfPrivacy Server Management API
|
|
'';
|
|
};
|
|
};
|
|
drv = pythonPkgs.callPackage selfprivacy-api { };
|
|
in
|
|
if pkgs.lib.inNixShell then drv.env else drv
|