a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
46 lines
853 B
Nix
46 lines
853 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=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|