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
1
-
{ lib, fetchPypi, buildPythonPackage
2
2
-
, six, udev, pytest, mock, hypothesis, docutils
1
1
+
{ lib
2
2
+
, fetchPypi
3
3
+
, buildPythonPackage
4
4
+
, six
5
5
+
, udev
6
6
+
, pytest
7
7
+
, mock
8
8
+
, hypothesis
9
9
+
, docutils
10
10
+
, stdenvNoCC
3
11
}:
4
12
5
13
buildPythonPackage rec {
···
11
19
hash = "sha256-deVNNyGPWsRbDaHw/ZzF5SajysPvHPrUEM96sziwFHE=";
12
20
};
13
21
14
14
-
postPatch = ''
22
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
30
-
meta = {
38
38
+
meta = with lib; {
31
39
homepage = "https://pyudev.readthedocs.org/";
32
40
description = "Pure Python libudev binding";
33
33
-
license = lib.licenses.lgpl21Plus;
41
41
+
license = licenses.lgpl21Plus;
42
42
+
maintainers = with maintainers; [ frogamic ];
34
43
};
35
44
}