2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-28 18:11:53 +01:00
|
|
|
, buildPythonPackage
|
2021-03-01 12:05:40 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, libuv
|
2018-10-28 18:11:53 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyuv";
|
2021-03-01 12:05:40 +01:00
|
|
|
version = "1.4.0";
|
2018-10-28 18:11:53 +01:00
|
|
|
|
2021-03-01 12:05:40 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "saghul";
|
|
|
|
repo = "pyuv";
|
|
|
|
rev = "pyuv-${version}";
|
|
|
|
sha256 = "1wiwwdylz66lfsjh6p4iv7pfhzvnhwjk332625njizfhz3gq9fwr";
|
2018-10-28 18:11:53 +01:00
|
|
|
};
|
|
|
|
|
2021-03-01 12:05:40 +01:00
|
|
|
setupPyBuildFlags = [ "--use-system-libuv" ];
|
2018-10-28 18:11:53 +01:00
|
|
|
|
2021-03-01 12:05:40 +01:00
|
|
|
buildInputs = [ libuv ];
|
|
|
|
|
|
|
|
doCheck = false; # doesn't work in sandbox
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyuv" ];
|
2018-10-28 18:11:53 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-28 18:11:53 +01:00
|
|
|
description = "Python interface for libuv";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/saghul/pyuv";
|
2018-10-28 18:11:53 +01:00
|
|
|
license = licenses.mit;
|
2021-03-01 12:05:40 +01:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2018-10-28 18:11:53 +01:00
|
|
|
};
|
|
|
|
}
|