Merge pull request #270380 from fabaff/amazon-ion-fix
python311Packages.amazon-ion: 0.10.0 -> 0.11.2
This commit is contained in:
commit
004e299431
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user