Merge pull request #105198 from SuperSandro2000/fix-web-py

authored by

Sandro and committed by
GitHub
2f503744 ada3931e

+47 -8
+3
pkgs/development/python-modules/WSME/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , pythonAtLeast 4 5 , pbr 5 6 , six 6 7 , simplegeneric ··· 22 23 buildPythonPackage rec { 23 24 pname = "WSME"; 24 25 version = "0.10.0"; 26 + 27 + disabled = pythonAtLeast "3.9"; 25 28 26 29 src = fetchPypi { 27 30 inherit pname version;
+8 -2
pkgs/development/python-modules/cheroot/default.nix
··· 1 1 { lib, stdenv, fetchPypi, buildPythonPackage, isPy3k 2 + , jaraco_functools 2 3 , jaraco_text 3 4 , more-itertools 4 5 , portend ··· 23 24 24 25 src = fetchPypi { 25 26 inherit pname version; 26 - sha256 = "1089c28a9c320d19fdf9a4b0ed6ace23a0948db1c171a36ac985f3741bc62865"; 27 + sha256 = "0r98qqdp9ww5r5ma6wf1n66r9813rrmfvc54z7yij39jkj5c528h"; 27 28 }; 28 29 29 30 nativeBuildInputs = [ setuptools_scm setuptools-scm-git-archive ]; 30 31 31 - propagatedBuildInputs = [ more-itertools six ]; 32 + propagatedBuildInputs = [ 33 + # install_requires 34 + jaraco_functools 35 + 36 + more-itertools six 37 + ]; 32 38 33 39 checkInputs = [ 34 40 jaraco_text
+21
pkgs/development/python-modules/dbutils/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, pytestCheckHook }: 2 + 3 + buildPythonPackage rec { 4 + version = "2.0"; 5 + pname = "dbutils"; 6 + 7 + src = fetchPypi { 8 + inherit version; 9 + pname = "DBUtils"; 10 + sha256 = "131ifm2c2a7bipij597i8fvjka0dk2qv1xr2ghcvbc30jlkvag2g"; 11 + }; 12 + 13 + checkInputs = [ pytestCheckHook ]; 14 + 15 + meta = with stdenv.lib; { 16 + description = "Database connections for multi-threaded environments"; 17 + homepage = "https://webwareforpython.github.io/DBUtils/"; 18 + license = licenses.mit; 19 + maintainers = with maintainers; [ SuperSandro2000 ]; 20 + }; 21 + }
+13 -6
pkgs/development/python-modules/web/default.nix
··· 1 - { stdenv 2 - , buildPythonPackage 3 - , fetchPypi 4 - , isPy3k 1 + { stdenv, buildPythonPackage, fetchPypi, pytestCheckHook 2 + , cheroot 3 + , dbutils, mysqlclient, pymysql, mysql-connector, psycopg2 5 4 }: 6 5 7 6 buildPythonPackage rec { 8 7 version = "0.62"; 9 8 pname = "web.py"; 10 - disabled = isPy3k; 11 9 12 10 src = fetchPypi { 13 11 inherit pname version; 14 12 sha256 = "5ce684caa240654cae5950da8b4b7bc178812031e08f990518d072bd44ab525e"; 15 13 }; 16 14 15 + propagatedBuildInputs = [ cheroot ]; 16 + 17 + # requires multiple running databases 18 + doCheck = false; 19 + 20 + pythonImportsCheck = [ "web" ]; 21 + 22 + checkInputs = [ pytestCheckHook dbutils mysqlclient pymysql mysql-connector psycopg2 ]; 23 + 17 24 meta = with stdenv.lib; { 18 25 description = "Makes web apps"; 19 26 longDescription = '' ··· 22 29 ''; 23 30 homepage = "https://webpy.org/"; 24 31 license = licenses.publicDomain; 25 - maintainers = with maintainers; [ layus ]; 32 + maintainers = with maintainers; [ layus SuperSandro2000 ]; 26 33 }; 27 34 28 35 }
+2
pkgs/top-level/python-packages.nix
··· 1552 1552 1553 1553 dbus-python = callPackage ../development/python-modules/dbus { inherit (pkgs) dbus pkgconfig; }; 1554 1554 1555 + dbutils = callPackage ../development/python-modules/dbutils { }; 1556 + 1555 1557 dcmstack = callPackage ../development/python-modules/dcmstack { }; 1556 1558 1557 1559 ddt = callPackage ../development/python-modules/ddt { };