nixpkgs/pkgs/development/python-modules/demjson3/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

35 lines
719 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, python
}:
buildPythonPackage rec {
pname = "demjson3";
version = "3.0.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-N8g7DG6wjSXe/IjfCipIddWKeAmpZQvW7uev2AU826w=";
};
checkPhase = ''
${python.interpreter} test/test_demjson3.py
'';
pythonImportsCheck = [
"demjson3"
];
meta = with lib; {
description = "Encoder/decoder and lint/validator for JSON (JavaScript Object Notation)";
mainProgram = "jsonlint";
homepage = "https://github.com/nielstron/demjson3/";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ fab ];
};
}