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";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "3.17.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "sha256-Ev1vKyxexPvTT+esf9ngUcHu70Brl27P3qbS5fK2HxU=";
|
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
|
|
|
};
|
|
|
|
}
|