nixpkgs/pkgs/development/python-modules/kafka-python/default.nix

31 lines
778 B
Nix
Raw Normal View History

2017-12-11 23:48:10 -08:00
{ stdenv, buildPythonPackage, fetchPypi, pytest, six, mock }:
2017-12-11 09:41:20 -08:00
buildPythonPackage rec {
name = "${pname}-${version}";
2018-05-28 05:18:16 -07:00
version = "1.4.3";
2017-12-11 09:41:20 -08:00
pname = "kafka-python";
src = fetchPypi {
inherit pname version;
2018-05-28 05:18:16 -07:00
sha256 = "078acdcd1fc6eddacc46d437c664998b4cf7613b7e79ced66a460965f2648f88";
2017-12-11 09:41:20 -08:00
};
2017-12-11 23:48:10 -08: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 09:41:20 -08: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; [ ];
};
}