Files
nixpkgs/pkgs/development/python-modules/json5/default.nix
2026-08-19 20:32:29 +02:00

36 lines
824 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "json5";
version = "0.15.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dpranke";
repo = "pyjson5";
tag = "v${finalAttrs.version}";
hash = "sha256-/Y8/IA3j5CJutqMM5fI/bWZrxOHWsEdYfuvWPTjFAJk=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "json5" ];
meta = {
description = "Python implementation of the JSON5 data format";
homepage = "https://github.com/dpranke/pyjson5";
changelog = "https://github.com/dpranke/pyjson5/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ veehaitch ];
mainProgram = "pyjson5";
};
})