Merge pull request #250206 from tjni/aiomysql

python3.pkgs.aiomysql: fix build dependency constraints
This commit is contained in:
Theodore Ni 2023-08-19 15:11:59 -07:00 committed by GitHub
commit 81e317ab65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = [