bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
47 lines
830 B
Nix
47 lines
830 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, jsonconversion
|
|
, six
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "amazon-ion";
|
|
version = "0.9.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "amazon.ion";
|
|
inherit version;
|
|
hash = "sha256-Moq1e7LmI0L7DHg6UNYvseEDbqdL23aCwL38wDm3yCA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "'pytest-runner'," ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
jsonconversion
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"amazon.ion"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python implementation of Amazon Ion";
|
|
homepage = "https://github.com/amzn/ion-python";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ terlar ];
|
|
};
|
|
}
|