depot/third_party/nixpkgs/pkgs/development/python-modules/hiredis/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
907 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# tested using
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "hiredis";
version = "2.3.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "redis";
repo = "hiredis-py";
rev = "refs/tags/v${version}";
fetchSubmodules = true;
hash = "sha256-7hTGXHNECy+dSsop0ULsNZvGFecCIEv+q46s7t/K7k8=";
};
pythonImportsCheck = [ "hiredis" ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
rm -rf hiredis
'';
meta = with lib; {
description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies";
homepage = "https://github.com/redis/hiredis-py";
changelog = "https://github.com/redis/hiredis-py/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}