2021-01-25 08:26:54 +00:00
|
|
|
{ lib, python, buildPythonPackage, fetchPypi, isPy3k }:
|
2017-10-29 10:43:27 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "demjson";
|
|
|
|
version = "2.2.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0ygbddpnvp5lby6mr5kz60la3hkvwwzv3wwb3z0w9ngxl0w21pii";
|
|
|
|
};
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
checkPhase = lib.optionalString isPy3k ''
|
2020-12-27 13:33:05 +00:00
|
|
|
${python.interpreter} -m lib2to3 -w test/test_demjson.py
|
|
|
|
'' + ''
|
|
|
|
${python.interpreter} test/test_demjson.py
|
|
|
|
'';
|
2021-01-03 05:37:18 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-29 10:43:27 +00:00
|
|
|
description = "Encoder/decoder and lint/validator for JSON (JavaScript Object Notation)";
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "https://github.com/dmeranda/demjson";
|
2017-10-29 10:43:27 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|