2017-05-28 09:08:10 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-08-01 23:23:27 +01:00
|
|
|
, fetchFromGitHub
|
2017-06-05 08:31:26 +01:00
|
|
|
, stdenv
|
2021-02-26 18:22:11 +00:00
|
|
|
, pytestCheckHook
|
2017-05-28 09:08:10 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "simplejson";
|
2021-11-25 22:47:15 +00:00
|
|
|
version = "3.17.6";
|
2017-05-28 09:08:10 +01:00
|
|
|
|
2019-08-01 23:23:27 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-25 22:47:15 +00:00
|
|
|
sha256 = "1irlp5sakbdfcf717qmrx0r9rjlmwk0vza6zm3y55d32zw5c1cxg";
|
2017-05-28 09:08:10 +01:00
|
|
|
};
|
|
|
|
|
2021-07-10 17:14:21 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2018-11-04 14:23:56 +00:00
|
|
|
|
2021-02-26 18:22:11 +00:00
|
|
|
pythonImportsCheck = [ "simplejson" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Extensible JSON encoder/decoder for Python";
|
2017-05-28 09:08:10 +01:00
|
|
|
longDescription = ''
|
2021-02-26 18:22:11 +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).
|
2017-05-28 09:08:10 +01:00
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/simplejson/simplejson";
|
2021-02-26 18:22:11 +00:00
|
|
|
license = with licenses; [ mit afl21 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-05-28 09:08:10 +01:00
|
|
|
};
|
2017-06-05 08:31:26 +01:00
|
|
|
}
|