Files
nixpkgs/pkgs/development/python-modules/amqp/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.1 KiB
Nix

{
stdenv,
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pytest-rerunfailures,
pythonOlder,
vine,
}:
buildPythonPackage rec {
pname = "amqp";
version = "5.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-zdwAxyVElSICO62Un3D/97SPCxredNFwpvEKsERzlDI=";
};
propagatedBuildInputs = [ vine ];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
pytestCheckHook
pytest-rerunfailures
];
disabledTests = [
# Requires network access
"test_rmq.py"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Requires network access but fails on macos only
"test_connection.py"
];
pythonImportsCheck = [ "amqp" ];
meta = {
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 = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}