depot/third_party/nixpkgs/pkgs/development/python-modules/demjson/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

25 lines
722 B
Nix

{ lib, stdenv, python, buildPythonPackage, fetchPypi, isPy3k }:
buildPythonPackage rec {
pname = "demjson";
version = "2.2.4";
src = fetchPypi {
inherit pname version;
sha256 = "0ygbddpnvp5lby6mr5kz60la3hkvwwzv3wwb3z0w9ngxl0w21pii";
};
checkPhase = stdenv.lib.optionalString isPy3k ''
${python.interpreter} -m lib2to3 -w test/test_demjson.py
'' + ''
${python.interpreter} test/test_demjson.py
'';
meta = with lib; {
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;
};
}