1a04744f74
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
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
cramjam,
|
|
cython,
|
|
fetchFromGitHub,
|
|
gssapi,
|
|
packaging,
|
|
setuptools,
|
|
typing-extensions,
|
|
zlib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiokafka";
|
|
version = "0.12.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aio-libs";
|
|
repo = "aiokafka";
|
|
tag = "v${version}";
|
|
hash = "sha256-OU/Kept3TvMfGvVCjSthfZnfTX6/T0Fy3PS/ynrV3Cg=";
|
|
};
|
|
|
|
build-system = [
|
|
cython
|
|
setuptools
|
|
];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
dependencies = [
|
|
async-timeout
|
|
packaging
|
|
typing-extensions
|
|
];
|
|
|
|
optional-dependencies = {
|
|
snappy = [ cramjam ];
|
|
lz4 = [ cramjam ];
|
|
zstd = [ cramjam ];
|
|
gssapi = [ gssapi ];
|
|
all = [
|
|
cramjam
|
|
gssapi
|
|
];
|
|
};
|
|
|
|
# Checks require running Kafka server
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "aiokafka" ];
|
|
|
|
meta = {
|
|
description = "Kafka integration with asyncio";
|
|
homepage = "https://aiokafka.readthedocs.org";
|
|
changelog = "https://github.com/aio-libs/aiokafka/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|