2022-04-15 01:41:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jsonconversion
|
|
|
|
, six
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "amazon-ion";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.9.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "amazon.ion";
|
|
|
|
inherit version;
|
2022-04-15 01:41:22 +00:00
|
|
|
hash = "sha256-Moq1e7LmI0L7DHg6UNYvseEDbqdL23aCwL38wDm3yCA=";
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-04-15 01:41:22 +00:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'pytest-runner'," ""
|
2022-04-03 18:54:34 +00:00
|
|
|
'';
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jsonconversion
|
|
|
|
six
|
|
|
|
];
|
2022-04-03 18:54:34 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-04-03 18:54:34 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"amazon.ion"
|
|
|
|
];
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-04-15 01:41:22 +00:00
|
|
|
description = "Python implementation of Amazon Ion";
|
2022-04-03 18:54:34 +00:00
|
|
|
homepage = "https://github.com/amzn/ion-python";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [
|
|
|
|
fromSource
|
|
|
|
binaryNativeCode
|
|
|
|
];
|
2022-04-03 18:54:34 +00:00
|
|
|
license = licenses.asl20;
|
2022-04-15 01:41:22 +00:00
|
|
|
maintainers = with maintainers; [ terlar ];
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
}
|