mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
ca5ee6dfb7
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
30 lines
734 B
Nix
30 lines
734 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pytest, six, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.4.4";
|
|
pname = "kafka-python";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1p9sr9vl96xz8qrgdrjiql9qkch2qx29pkq7igk28clgc6zbn510";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|