From 33717c46361221f03edabca3e2606f11e944ed71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 29 Jun 2013 20:07:21 +0200 Subject: [PATCH] python-demjson: new package demjson is a Python JSON module that reads, writes and validates JSON-encoded data; compliant with RFC 4627. It also includes a lint checker, jsonlint, which can be used to validate JSON documents for strict conformance to the RFC specification; as well as to reformat them, either by re-indenting or for minimal/canonical JSON output. Homepage: http://deron.meranda.us/python/demjson/ --- pkgs/top-level/python-packages.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c6fec3ee9251..00bcfcfd33cf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -997,6 +997,30 @@ pythonPackages = python.modules // rec { }; + demjson = buildPythonPackage rec { + name = "demjson-1.6"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/d/demjson/${name}.tar.gz"; + sha256 = "0abf7wqqq7rk1sycy47ayn5p93yy7gjq50cb2z69wmik1qqrr60x"; + }; + + doCheck = false; # there are no tests + + preFixup = '' + mkdir -p "$out/bin" + cp jsonlint "$out/bin/" + ''; + + meta = { + description = "Encoder/decoder and lint/validator for JSON (JavaScript Object Notation)"; + homepage = http://deron.meranda.us/python/demjson/; + maintainers = with stdenv.lib.maintainers; [ bjornfor ]; + platforms = stdenv.lib.platforms.all; + }; + }; + + evdev = buildPythonPackage rec { version = "0.3.2"; name = "evdev-${version}";