3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/confluent-kafka/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

25 lines
749 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro}:
buildPythonPackage rec {
name = "${pname}-${version}";
version = "0.9.4";
pname = "confluent-kafka";
src = fetchPypi {
inherit pname version;
sha256 = "1v8apw9f8l01ql42jg1sfqv41yxvcbxn1a3ar01y0ni428swq6wk";
};
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 ];
};
}