1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, pytest
6, pytz
7, glibcLocales
8}:
9
10buildPythonPackage rec {
11 version = "1.5";
12 pname = "python-rapidjson";
13 disabled = pythonOlder "3.4";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "04323e63cf57f7ed927fd9bcb1861ef5ecb0d4d7213f2755969d4a1ac3c2de6f";
18 };
19
20 LC_ALL="en_US.utf-8";
21 buildInputs = [ glibcLocales ];
22
23 # buildInputs = [ ];
24 checkInputs = [ pytest pytz ];
25 # propagatedBuildInputs = [ ];
26
27 checkPhase = ''
28 pytest tests
29 '';
30
31 meta = with lib; {
32 homepage = "https://github.com/python-rapidjson/python-rapidjson";
33 description = "Python wrapper around rapidjson ";
34 license = licenses.mit;
35 maintainers = [ maintainers.costrouc ];
36 };
37}