forked from mirrors/nixpkgs
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
24 lines
730 B
Nix
24 lines
730 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.11.4";
|
|
pname = "confluent-kafka";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "8cf480199685127c9692b0bf1e15eac82e71ae34b7967a016ab31a318741abb1";
|
|
};
|
|
|
|
buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ avro ]) ;
|
|
|
|
# Tests fail for python3 under this pypi release
|
|
doCheck = if isPy3k then false else true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Confluent's Apache Kafka client for Python";
|
|
homepage = https://github.com/confluentinc/confluent-kafka-python;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ mlieberman85 ];
|
|
};
|
|
}
|