Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 74 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ lib, buildPythonPackage, docopt, fetchFromGitHub, jsonconversion, pytestCheckHook, pythonOlder, setuptools, six, tabulate}:
buildPythonPackage rec { pname = "amazon-ion"; version = "0.11.3"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "amazon-ion"; repo = "ion-python"; rev = "refs/tags/v${version}"; # Test vectors require git submodule fetchSubmodules = true; hash = "sha256-wA24ASd6+rTAqHNQ9ZGMnCK9ykJjogCtEWfrXY1B87o="; };
postPatch = '' substituteInPlace setup.py \ --replace "'pytest-runner'," "" '';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ jsonconversion six ];
nativeCheckInputs = [ docopt pytestCheckHook tabulate ];
disabledTests = [ # ValueError: Exceeds the limit (4300) for integer string conversion "test_roundtrips" ];
disabledTestPaths = [ # Exclude benchmarks "tests/test_benchmark_cli.py" ];
pythonImportsCheck = [ "amazon.ion" ];
meta = with lib; { description = "Python implementation of Amazon Ion"; homepage = "https://github.com/amazon-ion/ion-python"; changelog = "https://github.com/amazon-ion/ion-python/releases/tag/v${version}"; sourceProvenance = with sourceTypes; [ fromSource binaryNativeCode ]; license = licenses.asl20; maintainers = with maintainers; [ terlar ]; };}