selfprivacy-nix-repo/pkgs/selfprivacy-api/default.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

2021-11-17 14:42:28 +02:00
{ nixpkgs ? import <nixpkgs> { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }:
let
inherit (nixpkgs) pkgs;
inherit pythonPkgs;
2022-01-26 17:06:43 +02:00
selfprivacy-api =
{ buildPythonPackage
, flask
, flask-restful
, setuptools
, portalocker
, flask-swagger
, flask-swagger-ui
, pytz
, pytest
, pytest-mock
, pytest-datadir
, huey
, gevent
, mnemonic
}:
2021-11-17 14:42:28 +02:00
buildPythonPackage rec {
pname = "selfprivacy-api";
2022-05-02 11:03:11 +03:00
version = "1.2.3";
2021-11-17 14:42:28 +02:00
src = builtins.fetchGit {
2021-11-17 19:29:10 +02:00
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git";
2022-05-02 11:03:11 +03:00
rev = "c0c9c1e89ec58533cc0f338449020fbbe6939411";
2021-11-17 14:42:28 +02:00
};
2022-01-26 17:06:43 +02:00
propagatedBuildInputs = [
flask
flask-restful
setuptools
portalocker
flask-swagger
flask-swagger-ui
pytz
pytest
pytest-mock
pytest-datadir
huey
gevent
mnemonic
];
2021-11-17 14:42:28 +02:00
meta = {
description = ''
SelfPrivacy Server Management API
'';
};
};
drv = pythonPkgs.callPackage selfprivacy-api { };
in
if pkgs.lib.inNixShell then drv.env else drv