mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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/
This commit is contained in:
parent
13017198de
commit
33717c4636
1 changed files with 24 additions and 0 deletions
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue