pythonPackages.pyudev: Allow to install on darwin
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user