3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/kafka-python/default.nix

30 lines
746 B
Nix
Raw Normal View History

2017-12-12 07:48:10 +00:00
{ stdenv, buildPythonPackage, fetchPypi, pytest, six, mock }:
2017-12-11 17:41:20 +00:00
buildPythonPackage rec {
2019-04-16 18:15:36 +01:00
version = "1.4.6";
2017-12-11 17:41:20 +00:00
pname = "kafka-python";
src = fetchPypi {
inherit pname version;
2019-04-16 18:15:36 +01:00
sha256 = "08f83d8e0af2e64d25f94314d4bef6785b34e3b0df0effe9eebf76b98de66eeb";
2017-12-11 17:41:20 +00:00
};
2017-12-12 07:48:10 +00:00
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;
2017-12-11 17:41:20 +00:00
meta = with stdenv.lib; {
description = "Pure Python client for Apache Kafka";
homepage = https://github.com/dpkp/kafka-python;
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}