nixpkgs/pkgs/development/python-modules/kafka-python/default.nix
R. RyanTM 5a68b041fd python37Packages.kafka-python: 1.4.4 -> 1.4.5
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-kafka-python/versions

(cherry picked from commit a4532fdea8a92aa65c1a0ac1483fd4394612b18d)
2019-04-07 13:53:43 +02:00

29 lines
734 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, pytest, six, mock }:
buildPythonPackage rec {
version = "1.4.5";
pname = "kafka-python";
src = fetchPypi {
inherit pname version;
sha256 = "01jlklfgvggkyq5yj0zhk46xv91jhha2cshq8kbxv9f7043c201i";
};
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;
meta = with stdenv.lib; {
description = "Pure Python client for Apache Kafka";
homepage = https://github.com/dpkp/kafka-python;
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}