diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-11-17 21:47:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 21:47:39 +0100 |
commit | 19e27c3547b51e8705855879a4f55846c75ee5fb (patch) | |
tree | e3ac9b8fed321a04c152b2a59deb9d454010c600 | |
parent | 4b8d7d814e63fc5f918e591604f240f9fae5618b (diff) | |
parent | ad9be71c71cf4674e19a3ab1fb0961312f741bfe (diff) | |
download | nixpkgs-19e27c3547b51e8705855879a4f55846c75ee5fb.tar nixpkgs-19e27c3547b51e8705855879a4f55846c75ee5fb.tar.gz nixpkgs-19e27c3547b51e8705855879a4f55846c75ee5fb.tar.bz2 nixpkgs-19e27c3547b51e8705855879a4f55846c75ee5fb.tar.lz nixpkgs-19e27c3547b51e8705855879a4f55846c75ee5fb.tar.xz nixpkgs-19e27c3547b51e8705855879a4f55846c75ee5fb.tar.zst nixpkgs-19e27c3547b51e8705855879a4f55846c75ee5fb.zip |
Merge pull request #268038 from frogamic/pyudev-darwin
pythonPackages.pyudev: Allow to install on darwin
-rw-r--r-- | pkgs/development/python-modules/pyudev/default.nix | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/pyudev/default.nix b/pkgs/development/python-modules/pyudev/default.nix index 29b1e5f8d53..8c3c0d86f3b 100644 --- a/pkgs/development/python-modules/pyudev/default.nix +++ b/pkgs/development/python-modules/pyudev/default.nix @@ -1,5 +1,13 @@ -{ lib, fetchPypi, buildPythonPackage -, six, udev, pytest, mock, hypothesis, docutils +{ lib +, fetchPypi +, buildPythonPackage +, six +, udev +, pytest +, mock +, hypothesis +, docutils +, stdenvNoCC }: buildPythonPackage rec { @@ -11,7 +19,7 @@ buildPythonPackage rec { hash = "sha256-deVNNyGPWsRbDaHw/ZzF5SajysPvHPrUEM96sziwFHE="; }; - postPatch = '' + postPatch = lib.optionalString stdenvNoCC.isLinux '' substituteInPlace src/pyudev/_ctypeslib/utils.py \ --replace "find_library(name)" "'${lib.getLib udev}/lib/libudev.so'" ''; @@ -27,9 +35,10 @@ buildPythonPackage rec { # https://github.com/pyudev/pyudev/issues/187 doCheck = false; - meta = { + meta = with lib; { homepage = "https://pyudev.readthedocs.org/"; description = "Pure Python libudev binding"; - license = lib.licenses.lgpl21Plus; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ frogamic ]; }; } |