1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/kafka-python/default.nix
2019-04-18 12:42:40 +02:00

30 lines
746 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, pytest, six, mock }:
buildPythonPackage rec {
version = "1.4.6";
pname = "kafka-python";
src = fetchPypi {
inherit pname version;
sha256 = "08f83d8e0af2e64d25f94314d4bef6785b34e3b0df0effe9eebf76b98de66eeb";
};
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; [ ];
};
}