Merge pull request #68855 from marsam/drop-pyev

pythonPackages.pyev: drop
This commit is contained in:
Marek Mahut 2019-09-16 10:24:49 +02:00 committed by GitHub
commit db21aabe15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 41 deletions

View file

@ -1,12 +1,8 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
, nose
, mock
, pyyaml
, unittest2
, pyev
, twisted
, tornado
}:
@ -20,11 +16,7 @@ buildPythonPackage rec {
sha256 = "1gqx9avb9nwgiyw5nz08bf99v9b0hvzr1pmqn9wbhd2hnsj6p9wz";
};
# Tests require twisted which is only availalble for python-2.x
doCheck = !isPy3k;
buildInputs = [ nose mock pyyaml unittest2 pyev ]
++ stdenv.lib.optionals (!isPy3k) [ twisted tornado ];
checkInputs = [ nose mock twisted tornado ];
meta = with stdenv.lib; {
description = "Pure-Python implementation of the AMQP 0-9-1 protocol";

View file

@ -1,30 +0,0 @@
{ stdenv, fetchurl, buildPythonPackage, libev }:
buildPythonPackage rec {
pname = "pyev";
version = "0.9.0";
src = fetchurl {
url = "mirror://pypi/p/pyev/${pname}-${version}.tar.gz";
sha256 = "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx";
};
buildInputs = [ libev ];
libEvSharedLibrary =
if !stdenv.isDarwin
then "${libev}/lib/libev.so.4"
else "${libev}/lib/libev.4.dylib";
postPatch = ''
test -f "${libEvSharedLibrary}" || { echo "ERROR: File ${libEvSharedLibrary} does not exist, please fix nix expression for pyev"; exit 1; }
sed -i -e "s|libev_dll_name = find_library(\"ev\")|libev_dll_name = \"${libEvSharedLibrary}\"|" setup.py
'';
meta = with stdenv.lib; {
description = "Python bindings for libev";
homepage = https://code.google.com/p/pyev/;
license = licenses.gpl3;
maintainers = [ maintainers.bjornfor ];
};
}

View file

@ -4380,8 +4380,6 @@ in {
pyenchant = callPackage ../development/python-modules/pyenchant { };
pyev = callPackage ../development/python-modules/pyev { };
pyexcelerator = callPackage ../development/python-modules/pyexcelerator { };
pyext = callPackage ../development/python-modules/pyext { };