4 antlr4-python3-runtime,
31 buildPythonPackage rec {
36 disabled = pythonOlder "3.8";
38 src = fetchFromGitHub {
41 rev = "refs/tags/v${version}";
42 hash = "sha256-Q5ihWnoa7nf4EkrY4SgrwjaNvTva4RdW9GRbnbsPXPc=";
46 rm src/pyfx/model/common/jsonpath/*.py # upstream checks in generated files, remove to ensure they were regenerated
47 antlr -Dlanguage=Python3 -visitor src/pyfx/model/common/jsonpath/*.g4
48 rm src/pyfx/model/common/jsonpath/*.{g4,interp,tokens} # no need to install
51 pythonRelaxDeps = true;
53 build-system = [ setuptools ];
55 nativeBuildInputs = [ antlr4 ];
57 propagatedBuildInputs = [
58 antlr4-python3-runtime
83 # FAILED tests/test_event_loops.py::TwistedEventLoopTest::test_run - AssertionError: 'callback called with future outcome: True' not found in ['...
84 doCheck = !stdenv.hostPlatform.isDarwin;
86 pythonImportsCheck = [ "pyfx" ];
89 description = "Module to view JSON in a TUI";
90 homepage = "https://github.com/cielong/pyfx";
91 changelog = "https://github.com/cielong/pyfx/releases/tag/v${version}";
92 license = with licenses; [ mit ];
93 maintainers = with maintainers; [ fab ];