Files
nixpkgs/pkgs/development/python-modules/kombu/default.nix
T
Peder Bergebakken Sundt 5aba99242e treewide: fix typos in comments
Made with

```shell
git restore .
fd '\.nix$' pkgs/ --type f -j1 -x bash -xc "$(cat <<"EOF"
    typos --no-check-filenames --write-changes "$1"
    git diff --exit-code "$1" && exit
    #( git diff "$1" | grep -qE "^\+ +[^# ]") && git restore "$1"
    count1="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> ' | wc -l )"
    count2="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> (<span style="color:#f8f8f2;"> *</span>)?<span style="color:#75715e;">.*</span>$' | wc -l )"
    [[ $count1 -ne $count2 ]] && git restore "$1"
EOF
)" -- {}
```

and filtered with `GIT_DIFF_OPTS='--unified=15' git -c interactive.singleKey=true add --patch`

I initially tried using the tree-sitter cli, python bindings and even ast-grep through various means, but this is what I ended up with.
2025-02-24 10:44:41 +01:00

95 lines
1.8 KiB
Nix

{
lib,
amqp,
azure-identity,
azure-servicebus,
azure-storage-queue,
boto3,
buildPythonPackage,
confluent-kafka,
fetchPypi,
hypothesis,
kazoo,
msgpack,
pycurl,
pymongo,
#, pyro4
pytestCheckHook,
pythonOlder,
pyyaml,
redis,
setuptools,
sqlalchemy,
typing-extensions,
tzdata,
urllib3,
vine,
}:
buildPythonPackage rec {
pname = "kombu";
version = "5.4.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-7vVy3S/Z/GFLN1gOPK6v3Vr0bB7/Mef7qJE4zbQG8s8=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
amqp
tzdata
vine
] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ];
optional-dependencies = {
msgpack = [ msgpack ];
yaml = [ pyyaml ];
redis = [ redis ];
mongodb = [ pymongo ];
sqs = [
boto3
urllib3
pycurl
];
zookeeper = [ kazoo ];
sqlalchemy = [ sqlalchemy ];
azurestoragequeues = [
azure-identity
azure-storage-queue
];
azureservicebus = [ azure-servicebus ];
confluentkafka = [ confluent-kafka ];
# pyro4 doesn't support Python 3.11
#pyro = [
# pyro4
#];
};
nativeCheckInputs = [
hypothesis
pytestCheckHook
] ++ lib.flatten (lib.attrValues optional-dependencies);
pythonImportsCheck = [ "kombu" ];
disabledTests = [
# Disable pyro4 test
"test_driver_version"
# AssertionError: assert [call('WATCH'..., 'test-tag')] ==...
"test_global_keyprefix_transaction"
];
meta = with lib; {
description = "Messaging library for Python";
homepage = "https://github.com/celery/kombu";
changelog = "https://github.com/celery/kombu/blob/v${version}/Changelog.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}