# HG changeset patch # User RhodeCode Admin # Date 2023-02-19 20:11:17 # Node ID 42a84d4cb37028039109089908e9391d916bdea5 # Parent b28d9cbfa409e6c26f79f26d09e37afc91454b2f dependencies: replaced deprecated mysql-python for mysqlclient which is a maintained lib diff --git a/pkgs/python-packages-overrides.nix b/pkgs/python-packages-overrides.nix --- a/pkgs/python-packages-overrides.nix +++ b/pkgs/python-packages-overrides.nix @@ -110,7 +110,7 @@ self: super: { ]; }); - "mysql-python" = super."mysql-python".override (attrs: { + "mysqlclient" = super."mysqlclient".override (attrs: { buildInputs = [ pkgs.openssl ]; diff --git a/pkgs/python-packages.nix b/pkgs/python-packages.nix --- a/pkgs/python-packages.nix +++ b/pkgs/python-packages.nix @@ -1061,12 +1061,12 @@ self: super: { license = [ pkgs.lib.licenses.asl20 ]; }; }; - "mysql-python" = super.buildPythonPackage { - name = "mysql-python-1.2.5"; + "mysqlclient" = super.buildPythonPackage { + name = "mysqlclient-1.4.6"; doCheck = false; src = fetchurl { - url = "https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip"; - sha256 = "0x0c2jg0bb3pp84njaqiic050qkyd7ymwhfvhipnimg58yv40441"; + url = "https://files.pythonhosted.org/packages/d0/97/7326248ac8d5049968bf4ec708a5d3d4806e412a42e74160d7f266a3e03a/mysqlclient-1.4.6.tar.gz"; + sha256 = "f3fdaa9a38752a3b214a6fe79d7cae3653731a53e577821f9187e67cbecb2e16"; }; meta = { license = [ pkgs.lib.licenses.gpl1 ]; @@ -1969,7 +1969,7 @@ self: super: { self."zope.deprecation" self."zope.event" self."zope.interface" - self."mysql-python" + self."mysqlclient" self."pymysql" self."pysqlite" self."psycopg2" diff --git a/requirements.txt b/requirements.txt --- a/requirements.txt +++ b/requirements.txt @@ -81,7 +81,7 @@ zope.event==4.4.0 zope.interface==4.6.0 # DB drivers -mysql-python==1.2.5 +mysqlclient==1.4.6 pymysql==0.8.1 pysqlite==2.8.3 psycopg2==2.8.4