Skip to content

Commit

Permalink
python312Packages.avro: ubreak
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds committed Apr 20, 2024
1 parent 64049a5 commit cddcb2a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/development/python-modules/avro/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, pythonOlder
, setuptools
, fetchPypi
, typing-extensions
, pytestCheckHook
Expand All @@ -9,7 +10,7 @@
buildPythonPackage rec {
pname = "avro";
version = "1.11.3";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.6";

Expand All @@ -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
];
Expand Down

0 comments on commit cddcb2a

Please sign in to comment.