python311Packages.amazon-ion: 0.10.0 -> 0.11.2

Diff: amazon-ion/ion-python@refs/tags/v0.10.0...v0.11.2

Changelog: https://github.com/amazon-ion/ion-python/releases/tag/v0.11.2
This commit is contained in:
Fabian Affolter 2023-12-01 21:12:25 +01:00
parent 8cfef6986a
commit a5eac6f91a

@ -1,26 +1,29 @@
{ lib
, buildPythonPackage
, docopt
, fetchFromGitHub
, jsonconversion
, six
, pytestCheckHook
, pythonOlder
, setuptools
, six
, tabulate
}:
buildPythonPackage rec {
pname = "amazon-ion";
version = "0.10.0";
format = "setuptools";
version = "0.11.2";
pyproject = true;
disabled = pythonOlder "3.7";
# test vectors require git submodule
src = fetchFromGitHub {
owner = "amzn";
owner = "amazon-ion";
repo = "ion-python";
rev = "refs/tags/v${version}";
# Test vectors require git submodule
fetchSubmodules = true;
hash = "sha256-pCm3jd/dVqO/uIvT5N/w5yoUWU6ni62Pl2A862e+qSk=";
hash = "sha256-0/+bX02qTbOydWDxex4OWL7woP7dW1yJZBmDZAivE7U=";
};
postPatch = ''
@ -28,13 +31,19 @@ buildPythonPackage rec {
--replace "'pytest-runner'," ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
jsonconversion
six
];
nativeCheckInputs = [
docopt
pytestCheckHook
tabulate
];
disabledTests = [
@ -42,13 +51,19 @@ buildPythonPackage rec {
"test_roundtrips"
];
disabledTestPaths = [
# Exclude benchmarks
"tests/test_benchmark_cli.py"
];
pythonImportsCheck = [
"amazon.ion"
];
meta = with lib; {
description = "Python implementation of Amazon Ion";
homepage = "https://github.com/amzn/ion-python";
homepage = "https://github.com/amazon-ion/ion-python";
changelog = "https://github.com/amazon-ion/ion-python/releases/tag/v${version}";
sourceProvenance = with sourceTypes; [
fromSource
binaryNativeCode