Skip to content

Commit

Permalink
Merge pull request #250206 from tjni/aiomysql
Browse files Browse the repository at this point in the history
python3.pkgs.aiomysql: fix build dependency constraints
  • Loading branch information
tjni authored Aug 19, 2023
2 parents e4a62b0 + 99055c0 commit 81e317a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions pkgs/development/python-modules/aiomysql/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pymysql
, pythonOlder
, setuptools-scm
, setuptools-scm-git-archive
, wheel
}:

buildPythonPackage rec {
Expand All @@ -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 = [
Expand Down

0 comments on commit 81e317a

Please sign in to comment.