> Executing setuptoolsBuildPhase > /nix/store/9z2cm958bxarf7n5i48czm7p7lwf9s58-python3.10-setuptools-67.4.0/lib/python3.10/site-packages/setuptools/config/setupcfg.py:520: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. > warnings.warn(msg, warning_class) > error in kombu setup command: 'tests_require' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after name and no valid version specifier) > pytz>dev > ^
60 lines
998 B
Nix
60 lines
998 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=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace requirements/test.txt \
|
|
--replace "pytz>dev" "pytz"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
amqp
|
|
vine
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
cached-property
|
|
importlib-metadata
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|