nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, pythonAtLeast
4, fetchFromGitHub
5, libuv
6}:
7
8buildPythonPackage rec {
9 pname = "pyuv";
10 version = "1.4.0";
11 disabled = pythonAtLeast "3.10"; # https://github.com/saghul/pyuv/issues/273
12
13 src = fetchFromGitHub {
14 owner = "saghul";
15 repo = "pyuv";
16 rev = "pyuv-${version}";
17 sha256 = "1wiwwdylz66lfsjh6p4iv7pfhzvnhwjk332625njizfhz3gq9fwr";
18 };
19
20 setupPyBuildFlags = [ "--use-system-libuv" ];
21
22 buildInputs = [ libuv ];
23
24 doCheck = false; # doesn't work in sandbox
25
26 pythonImportsCheck = [ "pyuv" ];
27
28 meta = with lib; {
29 description = "Python interface for libuv";
30 homepage = "https://github.com/saghul/pyuv";
31 license = licenses.mit;
32 maintainers = with maintainers; [ dotlambda ];
33 };
34}