git.iko.soy/typeable/nixpkgs
on master help sign in
python310Packages.amazon-ion: init at 0.8.0
commit98a276576885a920310d877305901eaba1a79b00 authorTerje Larsen <terlar@gmail.com> dateWed 30 Mar 2022, 10:53 (5 years ago) parenta7cf1df
2 files changed+31
pkgs/development/python-modules/amazon-ion/default.nix+29 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/amazon-ion/default.nixnew file+29
@@ -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+}
pkgs/top-level/python-packages.nix+2
@@ -470,6 +470,8 @@ in {
470470
471471 altair = callPackage ../development/python-modules/altair { };
472472
473+ amazon-ion = callPackage ../development/python-modules/amazon-ion { };
474+
473475 amazon_kclpy = callPackage ../development/python-modules/amazon_kclpy { };
474476
475477 ambee = callPackage ../development/python-modules/ambee { };