python3.pkgs.aiomysql: fix build dependency constraints

This commit is contained in:
Theodore Ni 2023-08-19 09:18:20 -07:00
parent ce3d6fe59b
commit 99055c0040
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -1,10 +1,11 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, pymysql , pymysql
, pythonOlder , pythonOlder
, setuptools-scm , setuptools-scm
, setuptools-scm-git-archive , wheel
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -21,9 +22,19 @@ buildPythonPackage rec {
hash = "sha256-m/EgoBU3e+s3soXyYtACMDSjJfMLBOk/00qPtgawwQ8="; 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 = [ nativeBuildInputs = [
setuptools-scm setuptools-scm
setuptools-scm-git-archive wheel
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [