python3Packages.pamqp: run tests
This commit is contained in:
parent
efd3568e02
commit
b048539afb
@ -1,28 +1,46 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, mock
|
||||
, nose
|
||||
, pep8
|
||||
, pylint
|
||||
, mccabe
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "3.1.0";
|
||||
pname = "pamqp";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e4f0886d72c6166637a5513626148bf5a7e818073a558980e9aaed8b4ccf30da";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gmr";
|
||||
repo = "pamqp";
|
||||
rev = version;
|
||||
hash = "sha256-qiYfQsyYvG6pyRFDt3pyYKNNWNP88maj+VAeGD68OmY=";
|
||||
};
|
||||
|
||||
buildInputs = [ mock nose pep8 pylint mccabe ];
|
||||
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://pypi.python.org/pypi/pamqp";
|
||||
homepage = "https://github.com/gmr/pamqp";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user