nixpkgs/pkgs/development/python-modules/python-rapidjson/default.nix
2019-02-17 14:40:39 +01:00

38 lines
755 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytest
, pytz
, glibcLocales
}:
buildPythonPackage rec {
version = "0.7.0";
pname = "python-rapidjson";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "d9c1411b25600ea65bb534ad75bf4ab6efd9627abd86872f0e5453ff42220d06";
};
LC_ALL="en_US.utf-8";
buildInputs = [ glibcLocales ];
# buildInputs = [ ];
checkInputs = [ pytest pytz ];
# propagatedBuildInputs = [ ];
checkPhase = ''
pytest tests
'';
meta = with stdenv.lib; {
homepage = https://github.com/python-rapidjson/python-rapidjson;
description = "Python wrapper around rapidjson ";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}