tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
pythonPackages.pyudev: Allow to install on darwin
Dominic Shelton
2 years ago
ad9be71c
5b523b15
+14
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pyudev
default.nix
+14
-5
pkgs/development/python-modules/pyudev/default.nix
···
1
-
{ lib, fetchPypi, buildPythonPackage
2
-
, six, udev, pytest, mock, hypothesis, docutils
0
0
0
0
0
0
0
0
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;
0
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
}