From 2ff59535dd0755fb7d848e93771c9294e018f60e Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Fri, 20 Nov 2020 08:44:04 +0100 Subject: [PATCH] finish matrix-registration package --- pkgs/matrix-registration/default.nix | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/pkgs/matrix-registration/default.nix b/pkgs/matrix-registration/default.nix index a1819f3..31baa5e 100644 --- a/pkgs/matrix-registration/default.nix +++ b/pkgs/matrix-registration/default.nix @@ -1,26 +1,34 @@ -{ lib, python3Packages }: +{ lib, python3Packages, fetchFromGitHub }: python3Packages.buildPythonApplication rec { pname = "matrix-registration"; version = "0.7.0"; - src = python3Packages.fetchPypi { - inherit pname version; - sha256 = "035w8gaqla6zlan0xjrzz9j4lh9hs0qrsgnbyw07qs7lnkvbdv9x"; + src = fetchFromGitHub { + owner = "zeratax"; + repo = "matrix-registration"; + rev = "v0.7.0"; + sha256 = "1dlaf1828i814s9axqfa7jasb9g73pa13ngs6cglxnra3nwjzjfc"; }; propagatedBuildInputs = with python3Packages; [ + setuptools appdirs - Flask - Flask-SQLAlchemy + flask + flask_sqlalchemy flask-cors flask-httpauth flask-limiter python-dateutil - PyYAML + pyyaml requests waitress - WTForms + wtforms + ]; + + checkInputs = with python3Packages; [ + parameterized + flake8 ]; meta = with lib; {