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