1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-07 02:59:19 +03:00
nixpkgs/pkgs/development/python-modules/pyuv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
983 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2022-03-07 11:08:14 +01:00
, pythonAtLeast
2021-03-01 12:05:40 +01:00
, fetchFromGitHub
, fetchpatch
2021-03-01 12:05:40 +01:00
, libuv
}:
buildPythonPackage rec {
pname = "pyuv";
2021-03-01 12:05:40 +01:00
version = "1.4.0";
disabled = pythonAtLeast "3.11";
2021-03-01 12:05:40 +01:00
src = fetchFromGitHub {
owner = "saghul";
repo = "pyuv";
rev = "pyuv-${version}";
sha256 = "1wiwwdylz66lfsjh6p4iv7pfhzvnhwjk332625njizfhz3gq9fwr";
};
patches = [
(fetchpatch {
name = "fix-build-with-python3.10.patch";
url = "https://github.com/saghul/pyuv/commit/8bddcc27052017b5b9cb89c24dbfdf06737b0dd3.patch";
sha256 = "sha256-J/3ky64Ff+gYpN3ksFLNuZ5xgPbBkyOl4LTY6fiHAgk=";
})
];
2021-03-01 12:05:40 +01:00
setupPyBuildFlags = [ "--use-system-libuv" ];
2021-03-01 12:05:40 +01:00
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;
2021-03-01 12:05:40 +01:00
maintainers = with maintainers; [ dotlambda ];
};
}