Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 73 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ lib, buildPythonPackage, cbor2, docopt, fetchFromGitHub, jsonconversion, pytestCheckHook, pythonOlder, setuptools, six, tabulate,}:
buildPythonPackage rec { pname = "amazon-ion"; version = "0.13.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "amazon-ion"; repo = "ion-python"; tag = "v${version}"; # Test vectors require git submodule fetchSubmodules = true; hash = "sha256-ZnslVmXE2YvTAkpfw2lbpB+uF85n/CvA22htO/Y7yWk="; };
postPatch = '' substituteInPlace setup.py \ --replace "'pytest-runner'," "" '';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ jsonconversion six ];
nativeCheckInputs = [ cbor2 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/${src.tag}"; sourceProvenance = with sourceTypes; [ fromSource binaryNativeCode ]; license = licenses.asl20; maintainers = with maintainers; [ terlar ]; };}