python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / json5 / default.nix
blob221c554ac6ccdb17ec173aeec32f0cb62adca1de
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   setuptools,
8 }:
10 buildPythonPackage rec {
11   pname = "json5";
12   version = "0.9.25";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "dpranke";
19     repo = "pyjson5";
20     tag = "v${version}";
21     hash = "sha256-2JAZHayPyi2RI4apODQ9QDXSUI8n54SwQAxZiBhuJrE=";
22   };
24   build-system = [ setuptools ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "json5" ];
30   meta = with lib; {
31     description = "Python implementation of the JSON5 data format";
32     homepage = "https://github.com/dpranke/pyjson5";
33     license = licenses.asl20;
34     maintainers = with maintainers; [ veehaitch ];
35     mainProgram = "pyjson5";
36   };