From c1011fcea4d967bc027e0bfde4055ce5b4538490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 23 Dec 2020 20:21:18 +0100 Subject: [PATCH] python3Packages.web: 0.61 -> 0.62, fix build --- .../python-modules/web/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/web/default.nix b/pkgs/development/python-modules/web/default.nix index 769ac6d2e5f..ab91d80b8c7 100644 --- a/pkgs/development/python-modules/web/default.nix +++ b/pkgs/development/python-modules/web/default.nix @@ -1,19 +1,26 @@ -{ stdenv -, buildPythonPackage -, fetchPypi -, isPy3k +{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook +, cheroot +, dbutils, mysqlclient, pymysql, mysql-connector, psycopg2 }: buildPythonPackage rec { version = "0.62"; pname = "web.py"; - disabled = isPy3k; src = fetchPypi { inherit pname version; sha256 = "5ce684caa240654cae5950da8b4b7bc178812031e08f990518d072bd44ab525e"; }; + propagatedBuildInputs = [ cheroot ]; + + # requires multiple running databases + doCheck = false; + + pythonImportsCheck = [ "web" ]; + + checkInputs = [ pytestCheckHook dbutils mysqlclient pymysql mysql-connector psycopg2 ]; + meta = with stdenv.lib; { description = "Makes web apps"; longDescription = '' @@ -22,7 +29,7 @@ buildPythonPackage rec { ''; homepage = "https://webpy.org/"; license = licenses.publicDomain; - maintainers = with maintainers; [ layus ]; + maintainers = with maintainers; [ layus SuperSandro2000 ]; }; }