Merge pull request #114738 from dotlambda/pyuv-1.4.0
pythonPackages.pyuv: 1.2.0 -> 1.4.0
This commit is contained in:
commit
ea61c06017
@ -1,28 +1,32 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPyPy
|
, fetchFromGitHub
|
||||||
, pkgs
|
, libuv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyuv";
|
pname = "pyuv";
|
||||||
version = "1.2.0";
|
version = "1.4.0";
|
||||||
disabled = isPyPy; # see https://github.com/saghul/pyuv/issues/49
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/saghul/pyuv/archive/${pname}-${version}.tar.gz";
|
owner = "saghul";
|
||||||
sha256 = "19yl1l5l6dq1xr8xcv6dhx1avm350nr4v2358iggcx4ma631rycx";
|
repo = "pyuv";
|
||||||
|
rev = "pyuv-${version}";
|
||||||
|
sha256 = "1wiwwdylz66lfsjh6p4iv7pfhzvnhwjk332625njizfhz3gq9fwr";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./pyuv-external-libuv.patch ];
|
setupPyBuildFlags = [ "--use-system-libuv" ];
|
||||||
|
|
||||||
buildInputs = [ pkgs.libuv ];
|
buildInputs = [ libuv ];
|
||||||
|
|
||||||
|
doCheck = false; # doesn't work in sandbox
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pyuv" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python interface for libuv";
|
description = "Python interface for libuv";
|
||||||
homepage = "https://github.com/saghul/pyuv";
|
homepage = "https://github.com/saghul/pyuv";
|
||||||
repositories.git = "git://github.com/saghul/pyuv.git";
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
diff --git a/setup.py b/setup.py
|
|
||||||
index 5071c3b..4b4a176 100644
|
|
||||||
--- a/setup.py
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -7,7 +7,6 @@ try:
|
|
||||||
from setuptools import setup, Extension
|
|
||||||
except ImportError:
|
|
||||||
from distutils.core import setup, Extension
|
|
||||||
-from setup_libuv import libuv_build_ext, libuv_sdist
|
|
||||||
|
|
||||||
|
|
||||||
def get_version():
|
|
||||||
@@ -35,11 +34,10 @@ setup(name = "pyuv",
|
|
||||||
"Programming Language :: Python :: 3.3",
|
|
||||||
"Programming Language :: Python :: 3.4"
|
|
||||||
],
|
|
||||||
- cmdclass = {'build_ext': libuv_build_ext,
|
|
||||||
- 'sdist' : libuv_sdist},
|
|
||||||
packages = ['pyuv'],
|
|
||||||
ext_modules = [Extension('pyuv._cpyuv',
|
|
||||||
sources = ['src/pyuv.c'],
|
|
||||||
+ libraries = ['uv']
|
|
||||||
)]
|
|
||||||
)
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user