Diff: https://github.com/simplejson/simplejson/compare/refs/tags/v3.18.3...v3.19.1 Changelog: https://github.com/simplejson/simplejson/blob/v3.19.1/CHANGES.txt
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "simplejson";
|
|
version = "3.19.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-LUD0Eoj7fDGiR0yhIZOto6kn7Ud0TXyDTO1UTbRMJiQ=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
doCheck = !stdenv.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 ];
|
|
};
|
|
}
|