summary refs log tree commit diff
path: root/pkgs/development/python-modules/ujson/default.nix
blob: ab1f3e2b7cabd7b04646c069c675856278cd2a35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, isPyPy
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "ujson";
  version = "4.0.2";
  disabled = isPyPy || (!isPy3k);

  src = fetchPypi {
    inherit pname version;
    sha256 = "c615a9e9e378a7383b756b7e7a73c38b22aeb8967a8bfbffd4741f7ffd043c4d";
  };

  nativeBuildInputs = [ setuptools-scm ];

  meta = with lib; {
    homepage = "https://pypi.python.org/pypi/ujson";
    description = "Ultra fast JSON encoder and decoder for Python";
    license = licenses.bsd3;
  };

}