2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
51 lines
1,022 B
Nix
51 lines
1,022 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, case
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pytest-rerunfailures
|
|
, pythonOlder
|
|
, vine
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "amqp";
|
|
version = "5.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-oez/QlrQY61CpIbJAoB9FIIxFIHIrZWnJpSyl1519/0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
vine
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
nativeCheckInputs = [
|
|
case
|
|
pytestCheckHook
|
|
pytest-rerunfailures
|
|
];
|
|
|
|
disabledTests = [
|
|
# Requires network access
|
|
"test_rmq.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"amqp"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python client for the Advanced Message Queuing Procotol (AMQP). This is a fork of amqplib which is maintained by the Celery project";
|
|
homepage = "https://github.com/celery/py-amqp";
|
|
changelog = "https://github.com/celery/py-amqp/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|