2017-12-12 07:48:10 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, six, mock }:
|
2017-12-11 17:41:20 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-05-09 04:23:46 +01:00
|
|
|
version = "2.0.1";
|
2017-12-11 17:41:20 +00:00
|
|
|
pname = "kafka-python";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 04:23:46 +01:00
|
|
|
sha256 = "1y7ny81rihnhc8lj921d76ir4kf4aj5iy35szgim8zccxhnx96p5";
|
2017-12-11 17:41:20 +00:00
|
|
|
};
|
|
|
|
|
2017-12-12 07:48:10 +00:00
|
|
|
checkInputs = [ pytest six mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Upstream uses tox but we don't on Nix. Running tests manually produces however
|
|
|
|
# from . import unittest
|
|
|
|
# E ImportError: cannot import name 'unittest'
|
|
|
|
doCheck = false;
|
2017-12-11 17:41:20 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Pure Python client for Apache Kafka";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dpkp/kafka-python";
|
2017-12-11 17:41:20 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|