depot/third_party/nixpkgs/pkgs/development/python-modules/pyuv/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

34 lines
751 B
Nix

{ lib
, buildPythonPackage
, pythonAtLeast
, fetchFromGitHub
, libuv
}:
buildPythonPackage rec {
pname = "pyuv";
version = "1.4.0";
disabled = pythonAtLeast "3.10"; # https://github.com/saghul/pyuv/issues/273
src = fetchFromGitHub {
owner = "saghul";
repo = "pyuv";
rev = "pyuv-${version}";
sha256 = "1wiwwdylz66lfsjh6p4iv7pfhzvnhwjk332625njizfhz3gq9fwr";
};
setupPyBuildFlags = [ "--use-system-libuv" ];
buildInputs = [ libuv ];
doCheck = false; # doesn't work in sandbox
pythonImportsCheck = [ "pyuv" ];
meta = with lib; {
description = "Python interface for libuv";
homepage = "https://github.com/saghul/pyuv";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}