Revert "pythonPackages.pyev: drop"
Package is still referred to. This reverts commit bb5c039fc95bea25133a01e8f1b46a50159f2412.
This commit is contained in:
parent
e68505e735
commit
4d4545185a
30
pkgs/development/python-modules/pyev/default.nix
Normal file
30
pkgs/development/python-modules/pyev/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -4370,6 +4370,8 @@ in {
|
|||||||
|
|
||||||
pyenchant = callPackage ../development/python-modules/pyenchant { };
|
pyenchant = callPackage ../development/python-modules/pyenchant { };
|
||||||
|
|
||||||
|
pyev = callPackage ../development/python-modules/pyev { };
|
||||||
|
|
||||||
pyexcelerator = callPackage ../development/python-modules/pyexcelerator { };
|
pyexcelerator = callPackage ../development/python-modules/pyexcelerator { };
|
||||||
|
|
||||||
pyext = callPackage ../development/python-modules/pyext { };
|
pyext = callPackage ../development/python-modules/pyext { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user