depot/third_party/nixpkgs/pkgs/development/python-modules/simplejson/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

46 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "simplejson";
version = "3.19.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+HHtU6sxxwISciLxiwa5m1zj7h/SLDmRxOZNqW5FQSY=";
};
nativeCheckInputs = [ pytestCheckHook ];
doCheck = !stdenv.hostPlatform.isDarwin;
pythonImportsCheck = [ "simplejson" ];
meta = with lib; {
description = "Extensible JSON encoder/decoder for Python";
longDescription = ''
simplejson covers the full JSON specification for both encoding
and decoding, with unicode support. By default, encoding is done
in an encoding neutral fashion (plain ASCII with \uXXXX escapes
for unicode characters).
'';
homepage = "https://github.com/simplejson/simplejson";
changelog = "https://github.com/simplejson/simplejson/blob/v${version}/CHANGES.txt";
license = with licenses; [
mit
afl21
];
maintainers = with maintainers; [ fab ];
};
}