mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
55 lines
888 B
Nix
55 lines
888 B
Nix
{ lib
|
|
, amqp
|
|
, azure-servicebus
|
|
, buildPythonPackage
|
|
, cached-property
|
|
, case
|
|
, fetchPypi
|
|
, importlib-metadata
|
|
, Pyro4
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
, vine
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "kombu";
|
|
version = "5.2.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-N87j7nJflOqLsXPqq3wXYCA+pTu+uuImMoYA+dJ5lhA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
amqp
|
|
vine
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
cached-property
|
|
importlib-metadata
|
|
];
|
|
|
|
checkInputs = [
|
|
azure-servicebus
|
|
case
|
|
Pyro4
|
|
pytestCheckHook
|
|
pytz
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"kombu"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Messaging library for Python";
|
|
homepage = "https://github.com/celery/kombu";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|