mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
pythonPackages.pyev: move to python-modules/
This commit is contained in:
parent
05bf2bdba1
commit
1402436395
29
pkgs/development/python-modules/pyev/default.nix
Normal file
29
pkgs/development/python-modules/pyev/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ stdenv, fetchurl, buildPythonPackage, libev }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "pyev-0.9.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/p/pyev/${name}.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 ];
|
||||
};
|
||||
}
|
@ -16274,34 +16274,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
pyev = buildPythonPackage rec {
|
||||
name = "pyev-0.9.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/pyev/${name}.tar.gz";
|
||||
sha256 = "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.libev ];
|
||||
|
||||
libEvSharedLibrary =
|
||||
if !stdenv.isDarwin
|
||||
then "${pkgs.libev}/lib/libev.so.4"
|
||||
else "${pkgs.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 = {
|
||||
description = "Python bindings for libev";
|
||||
homepage = https://code.google.com/p/pyev/;
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
};
|
||||
};
|
||||
pyev = callPackage ../development/python-modules/pyev { };
|
||||
|
||||
pyexcelerator = buildPythonPackage rec {
|
||||
name = "pyexcelerator-${version}";
|
||||
|
Loading…
Reference in New Issue
Block a user