forked from mirrors/nixpkgs
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
30 lines
746 B
Nix
30 lines
746 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pytest, six, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.4.3";
|
|
pname = "kafka-python";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "078acdcd1fc6eddacc46d437c664998b4cf7613b7e79ced66a460965f2648f88";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|