blob: 953a58950349fec9853536b81dd8d36d5131cdea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, six, mock }:
buildPythonPackage rec {
version = "1.4.7";
pname = "kafka-python";
src = fetchPypi {
inherit pname version;
sha256 = "2f29baad4b3efe05a2bb81ac268855aa01cbc68397f15bac77b494ffd7e2cada";
};
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; [ ];
};
}
|