2021-02-05 17:12:51 +00:00
|
|
|
{ lib, python, buildPythonPackage, fetchPypi, isPy3k }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "demjson";
|
|
|
|
version = "2.2.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0ygbddpnvp5lby6mr5kz60la3hkvwwzv3wwb3z0w9ngxl0w21pii";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
checkPhase = lib.optionalString isPy3k ''
|
2021-01-15 22:18:51 +00:00
|
|
|
${python.interpreter} -m lib2to3 -w test/test_demjson.py
|
|
|
|
'' + ''
|
|
|
|
${python.interpreter} test/test_demjson.py
|
|
|
|
'';
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Encoder/decoder and lint/validator for JSON (JavaScript Object Notation)";
|
|
|
|
homepage = "https://github.com/dmeranda/demjson";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|