mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
38 lines
755 B
Nix
38 lines
755 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pytest
|
|
, pytz
|
|
, glibcLocales
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.7.1";
|
|
pname = "python-rapidjson";
|
|
disabled = pythonOlder "3.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "3ea01520ebe28d270c79120a836d251fbb2187227695461a310fe0293f348b2d";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|