mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
Add simplejson, a JSON encoded/decoded for Python.
svn path=/nixpkgs/trunk/; revision=15110
This commit is contained in:
parent
0d067c287b
commit
5bed8bd9e1
45
pkgs/development/python-modules/simplejson/default.nix
Normal file
45
pkgs/development/python-modules/simplejson/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ fetchsvn, stdenv, python, setuptools }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "simplejson-2.0.9";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "http://simplejson.googlecode.com/svn/tags/${name}";
|
||||
sha256 = "a48d5256fdb4f258c33da3dda110ecf3c786f086dcb08a01309acde6d1ddb921";
|
||||
rev = "172"; # to be on the safe side
|
||||
};
|
||||
|
||||
buildInputs = [ python ];
|
||||
propagatedBuildInputs = [ setuptools ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
buildPhase = "python setup.py build --build-base $out";
|
||||
checkPhase = "python setup.py test";
|
||||
|
||||
installPhase = ''
|
||||
ensureDir "$out/lib/python2.5/site-packages"
|
||||
|
||||
PYTHONPATH="$out/lib/python2.5/site-packages:$PYTHONPATH" \
|
||||
python setup.py install --prefix="$out"
|
||||
|
||||
# Remove irrelevant directories.
|
||||
rm -rvf "$out/"lib.* "$out/"temp.*
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "simplejson is a simple, fast, extensible JSON encoder/decoder for Python";
|
||||
|
||||
longDescription = ''
|
||||
simplejson is compatible with Python 2.4 and later with no
|
||||
external dependencies. It covers the full JSON specification
|
||||
for both encoding and decoding, with unicode support. By
|
||||
default, encoding is done in an encoding neutral fashion (plain
|
||||
ASCII with \uXXXX escapes for unicode characters).
|
||||
'';
|
||||
|
||||
homepage = http://code.google.com/p/simplejson/;
|
||||
|
||||
license = "MIT";
|
||||
};
|
||||
}
|
|
@ -6482,6 +6482,10 @@ let
|
|||
inherit python;
|
||||
};
|
||||
|
||||
simplejson = import ../development/python-modules/simplejson {
|
||||
inherit fetchsvn stdenv python setuptools;
|
||||
};
|
||||
|
||||
wxPython = wxPython26;
|
||||
|
||||
wxPython26 = import ../development/python-modules/wxPython/2.6.nix {
|
||||
|
|
Loading…
Reference in a new issue