mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 16:36:38 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools-scm,
|
|
crc32c,
|
|
lz4,
|
|
python-snappy,
|
|
zstandard,
|
|
botocore,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
xxhash,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "2.2.3";
|
|
pname = "kafka-python-ng";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wbarnha";
|
|
repo = "kafka-python-ng";
|
|
tag = "v${version}";
|
|
hash = "sha256-a2RFiBRh3S2YQBekpwEK74ow8bGlgWCGqSf2vcgYPYk=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
optional-dependencies = {
|
|
crc32c = [ crc32c ];
|
|
lz4 = [ lz4 ];
|
|
snappy = [ python-snappy ];
|
|
zstd = [ zstandard ];
|
|
boto = [ botocore ];
|
|
};
|
|
|
|
pythonImportsCheck = [ "kafka" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-mock
|
|
pytestCheckHook
|
|
xxhash
|
|
]
|
|
++ lib.concatAttrValues optional-dependencies;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/wbarnha/kafka-python-ng/releases/tag/v${version}";
|
|
description = "Pure Python client for Apache Kafka";
|
|
homepage = "https://github.com/wbarnha/kafka-python-ng";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|