nixpkgs-suyu/pkgs/development/python-modules/hiredis/default.nix

30 lines
615 B
Nix
Raw Normal View History

2019-01-27 11:53:16 +01:00
{ stdenv
, buildPythonPackage
, fetchPypi
, redis
, python
}:
buildPythonPackage rec {
pname = "hiredis";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "158pymdlnv4d218w66i8kzdn4ka30l1pdwa0wyjh16bj10zraz79";
};
propagatedBuildInputs = [ redis ];
checkPhase = ''
${python.interpreter} test.py
'';
meta = with stdenv.lib; {
description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies";
homepage = "https://github.com/redis/hiredis-py";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}