1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytest, 6 six, 7 mock, 8}: 9 10buildPythonPackage rec { 11 version = "2.0.2"; 12 format = "setuptools"; 13 pname = "kafka-python"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "04dfe7fea2b63726cd6f3e79a2d86e709d608d74406638c5da33a01d45a9d7e3"; 18 }; 19 20 nativeCheckInputs = [ 21 pytest 22 six 23 mock 24 ]; 25 26 checkPhase = '' 27 py.test 28 ''; 29 30 # Upstream uses tox but we don't on Nix. Running tests manually produces however 31 # from . import unittest 32 # E ImportError: cannot import name 'unittest' 33 doCheck = false; 34 35 meta = with lib; { 36 description = "Pure Python client for Apache Kafka"; 37 homepage = "https://github.com/dpkp/kafka-python"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ ]; 40 }; 41}