depot/third_party/nixpkgs/pkgs/development/python-modules/kombu/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

60 lines
1.1 KiB
Nix

{ lib
, amqp
, azure-identity
, azure-servicebus
, backports-zoneinfo
, buildPythonPackage
, case
, fetchPypi
, hypothesis
, pyro4
, pytestCheckHook
, pythonOlder
, pytz
, vine
, typing-extensions
}:
buildPythonPackage rec {
pname = "kombu";
version = "5.3.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-+9dXLZLAv3HBEqa0UWMVPepae2pwHsFrVown0P0jcPI=";
};
propagatedBuildInputs = [
amqp
vine
] ++ lib.optionals (pythonOlder "3.10") [
typing-extensions
] ++ lib.optionals (pythonOlder "3.9") [
backports-zoneinfo
];
nativeCheckInputs = [
azure-identity
azure-servicebus
case
hypothesis
pyro4
pytestCheckHook
pytz
];
pythonImportsCheck = [
"kombu"
];
meta = with lib; {
changelog = "https://github.com/celery/kombu/releases/tag/v${version}";
description = "Messaging library for Python";
homepage = "https://github.com/celery/kombu";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}