lol

pythonPackages.pyudev: Allow to install on darwin

+14 -5
+14 -5
pkgs/development/python-modules/pyudev/default.nix
··· 1 - { lib, fetchPypi, buildPythonPackage 2 - , six, udev, pytest, mock, hypothesis, docutils 1 + { lib 2 + , fetchPypi 3 + , buildPythonPackage 4 + , six 5 + , udev 6 + , pytest 7 + , mock 8 + , hypothesis 9 + , docutils 10 + , stdenvNoCC 3 11 }: 4 12 5 13 buildPythonPackage rec { ··· 11 19 hash = "sha256-deVNNyGPWsRbDaHw/ZzF5SajysPvHPrUEM96sziwFHE="; 12 20 }; 13 21 14 - postPatch = '' 22 + postPatch = lib.optionalString stdenvNoCC.isLinux '' 15 23 substituteInPlace src/pyudev/_ctypeslib/utils.py \ 16 24 --replace "find_library(name)" "'${lib.getLib udev}/lib/libudev.so'" 17 25 ''; ··· 27 35 # https://github.com/pyudev/pyudev/issues/187 28 36 doCheck = false; 29 37 30 - meta = { 38 + meta = with lib; { 31 39 homepage = "https://pyudev.readthedocs.org/"; 32 40 description = "Pure Python libudev binding"; 33 - license = lib.licenses.lgpl21Plus; 41 + license = licenses.lgpl21Plus; 42 + maintainers = with maintainers; [ frogamic ]; 34 43 }; 35 44 }