nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, jsonconversion
5, six
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "amazon-ion";
12 version = "0.9.1";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 pname = "amazon.ion";
19 inherit version;
20 hash = "sha256-Moq1e7LmI0L7DHg6UNYvseEDbqdL23aCwL38wDm3yCA=";
21 };
22
23 postPatch = ''
24 substituteInPlace setup.py \
25 --replace "'pytest-runner'," ""
26 '';
27
28 propagatedBuildInputs = [
29 jsonconversion
30 six
31 ];
32
33 checkInputs = [
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "amazon.ion"
39 ];
40
41 meta = with lib; {
42 description = "Python implementation of Amazon Ion";
43 homepage = "https://github.com/amzn/ion-python";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ terlar ];
46 };
47}