Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
pytestCheckHook,
|
|
python,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hjson";
|
|
version = "3.0.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hjson";
|
|
repo = "hjson-py";
|
|
tag = "v${version}";
|
|
hash = "sha256-VrCLHfXShF45IEhGVQpryBzjxreQEunyghazDNKRh8k=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "hjson" ];
|
|
|
|
postInstall = ''
|
|
rm $out/bin/hjson.cmd
|
|
wrapProgram $out/bin/hjson \
|
|
--set PYTHONPATH "$PYTHONPATH" \
|
|
--prefix PATH : ${lib.makeBinPath [ python ]}
|
|
'';
|
|
|
|
disabledTestPaths = [
|
|
# AttributeError: b'/build/source/hjson/tool.py:14: Deprecati[151 chars]ools' != b''
|
|
"hjson/tests/test_tool.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "User interface for JSON";
|
|
homepage = "https://github.com/hjson/hjson-py";
|
|
changelog = "https://github.com/hjson/hjson-py/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ bhipple ];
|
|
mainProgram = "hjson";
|
|
};
|
|
}
|