mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
python312Packages.avro: ubreak
This commit is contained in:
parent
64049a5126
commit
cddcb2a4f1
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
@ -9,7 +10,7 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "avro";
|
pname = "avro";
|
||||||
version = "1.11.3";
|
version = "1.11.3";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
@ -18,10 +19,19 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-M5O7UTn5zweR0gV1bOHjmltYWGr1sVPWo7WhmWEOnRc=";
|
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") [
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user