Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 49 lines 854 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, kafka-python 6, cython 7, zlib 8}: 9 10buildPythonPackage rec { 11 pname = "aiokafka"; 12 version = "0.7.0"; 13 14 disabled = isPy27; 15 16 src = fetchFromGitHub { 17 owner = "aio-libs"; 18 repo = "aiokafka"; 19 rev = "v${version}"; 20 sha256 = "16pcgv38syqy6sj3w7zx95zgynpd642n3i95dpiw0ivhpqrxxhrf"; 21 }; 22 23 nativeBuildInputs = [ 24 cython 25 ]; 26 27 buildInputs = [ 28 zlib 29 ]; 30 31 propagatedBuildInputs = [ 32 kafka-python 33 ]; 34 35 postPatch = '' 36 substituteInPlace setup.py \ 37 --replace "kafka-python==1.4.6" "kafka-python" 38 ''; 39 40 # checks require running kafka server 41 doCheck = false; 42 43 meta = with lib; { 44 description = "Kafka integration with asyncio"; 45 homepage = "https://aiokafka.readthedocs.org"; 46 license = licenses.asl20; 47 maintainers = [ maintainers.costrouc ]; 48 }; 49}