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-12-26 17:43:05 +00:00
|
|
|
version = "3.17.6";
|
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}";
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "1irlp5sakbdfcf717qmrx0r9rjlmwk0vza6zm3y55d32zw5c1cxg";
|
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
|
|
|
};
|
|
|
|
}
|