diff --git a/default.nix b/default.nix index 4bdf816..f3dca45 100644 --- a/default.nix +++ b/default.nix @@ -27,6 +27,8 @@ in rust-synapse-compress-state = pkgs.callPackage ./pkgs/rust-synapse-compress-state { }; matrix-corporal = pkgs.callPackage ./pkgs/matrix-corporal { }; + matrix-registration = pkgs.callPackage ./pkgs/matrix-registration { }; + rank_photos = pkgs.callPackage ./pkgs/rank_photos { }; grav1 = pkgs.callPackage ./pkgs/grav1/server.nix { wsgiserver = wsgiserver; setuptools = pkgs.python3Packages.setuptools; }; diff --git a/pkgs/matrix-registration/default.nix b/pkgs/matrix-registration/default.nix new file mode 100644 index 0000000..a1819f3 --- /dev/null +++ b/pkgs/matrix-registration/default.nix @@ -0,0 +1,31 @@ +{ lib, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "matrix-registration"; + version = "0.7.0"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "035w8gaqla6zlan0xjrzz9j4lh9hs0qrsgnbyw07qs7lnkvbdv9x"; + }; + + propagatedBuildInputs = with python3Packages; [ + appdirs + Flask + Flask-SQLAlchemy + flask-cors + flask-httpauth + flask-limiter + python-dateutil + PyYAML + requests + waitress + WTForms + ]; + + meta = with lib; { + description = "Token based matrix registration api"; + homepage = "https://github.com/ZerataX/matrix-registration"; + license = with licenses; mit; + }; +}