@@ -0,0 +1,29 @@
1+{ lib, buildPythonPackage, fetchPypi, jsonconversion, six, pytestCheckHook }:
2+
3+buildPythonPackage rec {
4+ pname = "amazon-ion";
5+ version = "0.8.0";
6+
7+ src = fetchPypi {
8+ pname = "amazon.ion";
9+ inherit version;
10+ sha256 = "sha256-vtztUHSnGoPYozhwvigxEdieVtbKNfV4B5yZ4MHaWGw=";
11+ };
12+
13+ postPatch = ''
14+ substituteInPlace setup.py --replace "'pytest-runner'," ""
15+ '';
16+
17+ propagatedBuildInputs = [ jsonconversion six ];
18+
19+ checkInputs = [ pytestCheckHook ];
20+
21+ pythonImportsCheck = [ "amazon.ion" ];
22+
23+ meta = with lib; {
24+ description = "A Python implementation of Amazon Ion";
25+ homepage = "https://github.com/amzn/ion-python";
26+ license = licenses.asl20;
27+ maintainers = [ maintainers.terlar ];
28+ };
29+}