2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "simplejson";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.19.2";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-+HHtU6sxxwISciLxiwa5m1zj7h/SLDmRxOZNqW5FQSY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "simplejson" ];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Extensible JSON encoder/decoder for Python";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
2021-03-19 17:17:44 +00:00
|
|
|
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).
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/simplejson/simplejson";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/simplejson/simplejson/blob/v${version}/CHANGES.txt";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with licenses; [
|
|
|
|
mit
|
|
|
|
afl21
|
|
|
|
];
|
2021-03-19 17:17:44 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|