Files
nixpkgs/pkgs/development/python-modules/demjson3/default.nix
2026-06-10 15:28:36 +02:00

35 lines
745 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "demjson3";
version = "3.0.6";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-N8g7DG6wjSXe/IjfCipIddWKeAmpZQvW7uev2AU826w=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "demjson3" ];
meta = {
description = "Encoder/decoder and lint/validator for JSON (JavaScript Object Notation)";
mainProgram = "jsonlint";
homepage = "https://github.com/nielstron/demjson3/";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
})