diff --git a/pkgs/development/python-modules/aiomysql/default.nix b/pkgs/development/python-modules/aiomysql/default.nix index 3262ec4a1d21..acd3cc56e4a8 100644 --- a/pkgs/development/python-modules/aiomysql/default.nix +++ b/pkgs/development/python-modules/aiomysql/default.nix @@ -1,10 +1,11 @@ { lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , pymysql , pythonOlder , setuptools-scm -, setuptools-scm-git-archive +, wheel }: buildPythonPackage rec { @@ -21,9 +22,19 @@ buildPythonPackage rec { hash = "sha256-m/EgoBU3e+s3soXyYtACMDSjJfMLBOk/00qPtgawwQ8="; }; + patches = [ + # https://github.com/aio-libs/aiomysql/pull/955 + (fetchpatch { + name = "remove-setuptools-scm-git-archive-dependency.patch"; + url = "https://github.com/aio-libs/aiomysql/commit/fee997d2e848b634a84ce0c4e9025e3b3e761640.patch"; + hash = "sha256-qKcOfdDaA9DLS2fdHOEUW37aCCdtZjN0zsFV9dK/umQ="; + includes = [ "pyproject.toml" ]; + }) + ]; + nativeBuildInputs = [ setuptools-scm - setuptools-scm-git-archive + wheel ]; propagatedBuildInputs = [