Commit cbccbf93 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python314Packages.pypika: add patch to fix ast deprecation

parent 3bc9bc7e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  parameterized,
  unittestCheckHook,
  setuptools,
@@ -19,6 +20,15 @@ buildPythonPackage (finalAttrs: {
    hash = "sha256-Lawsc19sJ3U7rCOnYvDWhWqK/J+Hd3zKG6TrhDsTtVs=";
  };

  patches = [
    # Fix ast deprecation warnings, https://github.com/HENNGE/arsenic/pull/160
    (fetchpatch {
      name = "ast-deprecation.patch";
      url = "https://github.com/pyctrl/pypika/commit/e302e4d1c26242bcff61b50e0e8f157f181e1bc0.patch";
      hash = "sha256-pbJwOE5xaAapMKdm1xsNrISbCzHIKuhCgA2lA0vB1T8=";
    })
  ];

  build-system = [ setuptools ];

  nativeCheckInputs = [