2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
2021-03-19 17:17:44 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "simplejson";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "3.18.0";
|
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}";
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "sha256-X1lD/kCbKDPPgpr2deoVbC5LADqBlNZHvDg7206E9ZE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
pythonImportsCheck = [ "simplejson" ];
|
|
|
|
|
|
|
|
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";
|
2021-03-19 17:17:44 +00:00
|
|
|
license = with licenses; [ mit afl21 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|