12 buildPythonPackage rec {
17 disabled = pythonOlder "3.5";
19 src = fetchFromGitHub {
22 rev = "refs/tags/v${version}";
23 hash = "sha256-VrCLHfXShF45IEhGVQpryBzjxreQEunyghazDNKRh8k=";
26 build-system = [ setuptools ];
28 nativeBuildInputs = [ makeWrapper ];
30 nativeCheckInputs = [ pytestCheckHook ];
32 pythonImportsCheck = [ "hjson" ];
36 wrapProgram $out/bin/hjson \
37 --set PYTHONPATH "$PYTHONPATH" \
38 --prefix PATH : ${lib.makeBinPath [ python ]}
42 # AttributeError: b'/build/source/hjson/tool.py:14: Deprecati[151 chars]ools' != b''
43 "hjson/tests/test_tool.py"
47 description = "User interface for JSON";
48 homepage = "https://github.com/hjson/hjson-py";
49 changelog = "https://github.com/hjson/hjson-py/releases/tag/v${version}";
50 license = licenses.mit;
51 maintainers = with maintainers; [ bhipple ];
52 mainProgram = "hjson";