Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 29 lines 746 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, pytest, six, mock }: 2 3buildPythonPackage rec { 4 version = "1.4.6"; 5 pname = "kafka-python"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "08f83d8e0af2e64d25f94314d4bef6785b34e3b0df0effe9eebf76b98de66eeb"; 10 }; 11 12 checkInputs = [ pytest six mock ]; 13 14 checkPhase = '' 15 py.test 16 ''; 17 18 # Upstream uses tox but we don't on Nix. Running tests manually produces however 19 # from . import unittest 20 # E ImportError: cannot import name 'unittest' 21 doCheck = false; 22 23 meta = with stdenv.lib; { 24 description = "Pure Python client for Apache Kafka"; 25 homepage = https://github.com/dpkp/kafka-python; 26 license = licenses.asl20; 27 maintainers = with maintainers; [ ]; 28 }; 29}