mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
python-pyev: new package
Python bindings for the libev library.
https://code.google.com/p/pyev/
(cherry picked from commit 201059f728
)
Conflicts:
pkgs/top-level/python-packages.nix
This commit is contained in:
parent
79effb88a0
commit
7b6fd7682b
@ -7226,6 +7226,32 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
pyev = buildPythonPackage rec {
|
||||
name = "pyev-0.9.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/p/pyev/${name}.tar.gz";
|
||||
sha256 = "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.libev ];
|
||||
|
||||
postPatch = ''
|
||||
libev_so=${pkgs.libev}/lib/libev.so.4
|
||||
test -f "$libev_so" || { echo "ERROR: File $libev_so does not exist, please fix nix expression for pyev"; exit 1; }
|
||||
sed -i -e "s|libev_dll_name = find_library(\"ev\")|libev_dll_name = \"$libev_so\"|" setup.py
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Python bindings for libev";
|
||||
homepage = https://code.google.com/p/pyev/;
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
pyfeed = buildPythonPackage rec {
|
||||
url = "http://www.blarg.net/%7Esteveha/pyfeed-0.7.4.tar.gz";
|
||||
name = stdenv.lib.nameFromURL url ".tar";
|
||||
|
Loading…
Reference in New Issue
Block a user