2017-05-28 09:08:10 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-08-03 06:52:10 +01:00
|
|
|
, fetchPypi
|
2017-06-05 08:31:26 +01:00
|
|
|
, stdenv
|
2018-11-04 14:23:56 +00:00
|
|
|
, pytest
|
2017-05-28 09:08:10 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "simplejson";
|
2019-08-03 06:52:10 +01:00
|
|
|
version = "3.16.0";
|
2017-06-05 08:31:26 +01:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2017-05-28 09:08:10 +01:00
|
|
|
|
2019-08-03 06:52:10 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "b1f329139ba647a9548aa05fb95d046b4a677643070dc2afc05fa2e975d09ca5";
|
2017-05-28 09:08:10 +01:00
|
|
|
};
|
|
|
|
|
2018-11-04 14:23:56 +00:00
|
|
|
# Package does not need pytest, but its a bit easier debugging.
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
# Ignore warnings because test does not expect them in stderr
|
|
|
|
# See https://github.com/simplejson/simplejson/issues/241
|
|
|
|
checkPhase = ''
|
|
|
|
PYTHONWARNINGS="ignore" pytest simplejson/tests
|
|
|
|
'';
|
|
|
|
|
2017-05-28 09:08:10 +01:00
|
|
|
meta = {
|
|
|
|
description = "A simple, fast, extensible JSON encoder/decoder for Python";
|
|
|
|
longDescription = ''
|
|
|
|
simplejson is compatible with Python 2.4 and later with no
|
|
|
|
external dependencies. It 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).
|
|
|
|
'';
|
2019-01-05 21:40:24 +00:00
|
|
|
homepage = https://github.com/simplejson/simplejson;
|
|
|
|
license = with lib.licenses; [ mit afl21 ];
|
2017-05-28 09:08:10 +01:00
|
|
|
};
|
2017-06-05 08:31:26 +01:00
|
|
|
}
|