Unverified Commit 2fdf8d82 authored by annalee's avatar annalee
Browse files

python31{1,2}Packages.smart-open: apply patch fix unit tests for python 3.12

parent 4a451cb3
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, fetchpatch
, azure-common
, azure-core
, azure-storage-blob
@@ -31,6 +32,16 @@ buildPythonPackage rec {
    hash = "sha256-4HOTaF6AKXGlVCvSGKnnaH73aa4IO0aRxz03XQ4gSd8=";
  };

  patches = [
    # https://github.com/RaRe-Technologies/smart_open/pull/822
    # fix test_smart_open.py on python 3.12
    (fetchpatch {
      name = "fix-smart-open-test.patch";
      url = "https://github.com/RaRe-Technologies/smart_open/commit/3d29564ca034a56d343c9d14b178aaa0ff4c937c.patch";
      hash = "sha256-CrAeqaIMM8bctWiFnq9uamnIlkaslDyjaWL6k9wUjT8=";
    })
  ];

  build-system = [
    setuptools
  ];