summary refs log tree commit diff
path: root/pkgs/development/python-modules/amazon-ion/default.nix
blob: 016fa989a8ab36a9b433b60d91983e59b35f45aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, buildPythonPackage, fetchPypi, jsonconversion, six, pytestCheckHook }:

buildPythonPackage rec {
  pname = "amazon-ion";
  version = "0.8.0";

  src = fetchPypi {
    pname = "amazon.ion";
    inherit version;
    sha256 = "sha256-vtztUHSnGoPYozhwvigxEdieVtbKNfV4B5yZ4MHaWGw=";
  };

  postPatch = ''
    substituteInPlace setup.py --replace "'pytest-runner'," ""
  '';

  propagatedBuildInputs = [ jsonconversion six ];

  checkInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "amazon.ion" ];

  meta = with lib; {
    description = "A Python implementation of Amazon Ion";
    homepage = "https://github.com/amzn/ion-python";
    license = licenses.asl20;
    maintainers = [ maintainers.terlar ];
  };
}