1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, isPyPy
6, setuptools_scm
7}:
8
9buildPythonPackage rec {
10 pname = "ujson";
11 version = "3.1.0";
12 disabled = isPyPy || (!isPy3k);
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "00bda1de275ed6fe81817902189c75dfd156b4fa29b44dc1f4620775d2f50cf7";
17 };
18
19 nativeBuildInputs = [ setuptools_scm ];
20
21 meta = with stdenv.lib; {
22 homepage = "https://pypi.python.org/pypi/ujson";
23 description = "Ultra fast JSON encoder and decoder for Python";
24 license = licenses.bsd3;
25 };
26
27}