1{ stdenv
2, buildPythonPackage
3, fetchurl
4, isPyPy
5, pkgs
6}:
7
8buildPythonPackage rec {
9 pname = "pyuv";
10 version = "1.2.0";
11 disabled = isPyPy; # see https://github.com/saghul/pyuv/issues/49
12
13 src = pkgs.fetchurl {
14 url = "https://github.com/saghul/pyuv/archive/${pname}-${version}.tar.gz";
15 sha256 = "19yl1l5l6dq1xr8xcv6dhx1avm350nr4v2358iggcx4ma631rycx";
16 };
17
18 patches = [ ./pyuv-external-libuv.patch ];
19
20 buildInputs = [ pkgs.libuv ];
21
22 meta = with stdenv.lib; {
23 description = "Python interface for libuv";
24 homepage = https://github.com/saghul/pyuv;
25 repositories.git = git://github.com/saghul/pyuv.git;
26 license = licenses.mit;
27 };
28
29}