Merge pull request #305627 from pbsds/avro-1713646961

python312Packages.avro: unbreak
This commit is contained in:
Robert Scott 2024-04-25 22:19:23 +01:00 committed by GitHub
commit ed866611c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, pythonOlder
, setuptools
, fetchPypi
, typing-extensions
, pytestCheckHook
@ -9,7 +10,7 @@
buildPythonPackage rec {
pname = "avro";
version = "1.11.3";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6";
@ -18,10 +19,19 @@ buildPythonPackage rec {
hash = "sha256-M5O7UTn5zweR0gV1bOHjmltYWGr1sVPWo7WhmWEOnRc=";
};
postPatch = lib.optionalString (!pythonOlder "3.12") ''
substituteInPlace avro/test/test_tether_word_count.py \
--replace-fail 'distutils' 'setuptools._distutils'
'';
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
typing-extensions
];
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];