nixpkgs/pkgs/development/python-modules/python-rapidjson/default.nix
2021-04-03 17:49:19 +02:00

38 lines
745 B
Nix

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