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