01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
46 lines
847 B
Nix
46 lines
847 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "3.2.1";
|
|
pname = "pamqp";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gmr";
|
|
repo = "pamqp";
|
|
rev = version;
|
|
hash = "sha256-zvvRoGMNP4NMy3Etjif5MYUPdRqmQXATbFgxaPp1TaM=";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pamqp.base"
|
|
"pamqp.body"
|
|
"pamqp.commands"
|
|
"pamqp.common"
|
|
"pamqp.decode"
|
|
"pamqp.encode"
|
|
"pamqp.exceptions"
|
|
"pamqp.frame"
|
|
"pamqp.header"
|
|
"pamqp.heartbeat"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "RabbitMQ Focused AMQP low-level library";
|
|
homepage = "https://github.com/gmr/pamqp";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|