File tree 1 file changed +9
-6
lines changed
pkgs/development/python-modules/pyside
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# This derivation provides a Python module and should therefore be called via `python-packages.nix`.
4
4
# Python 3.5 is not supported: https://github.com/PySide/Shiboken/issues/77
5
- buildPythonPackage rec {
5
+ with lib ; buildPythonPackage rec {
6
6
name = "${ pname } -${ version } " ;
7
7
pname = "pyside-shiboken" ;
8
8
version = "1.2.4" ;
@@ -23,15 +23,18 @@ buildPythonPackage rec {
23
23
substituteInPlace generator/CMakeLists.txt --replace \
24
24
\"$\{GENERATORRUNNER_PLUGIN_DIR}\" lib/generatorrunner/
25
25
'' ;
26
- patches = if isPy35 then [ ./shiboken_py35.patch ] else null ;
26
+ patches = optional isPy35 ./shiboken_py35.patch ;
27
27
28
- cmakeFlags = if isPy3k then "-DUSE_PYTHON3=TRUE" else null ;
28
+ cmakeFlags = optionals isPy3k [
29
+ "-DUSE_PYTHON3=TRUE" "-DPYTHON3_LIBRARY=${ python } /lib/libpython3.so"
30
+ "-DPYTHON3_INCLUDE_DIR=${ python } /include/${ python . libPrefix } "
31
+ ] ;
29
32
30
33
meta = {
31
34
description = "Plugin (front-end) for pyside-generatorrunner, that generates bindings for C++ libraries using CPython source code" ;
32
- license = lib . licenses . gpl2 ;
35
+ license = licenses . gpl2 ;
33
36
homepage = "http://www.pyside.org/docs/shiboken/" ;
34
- maintainers = [ lib . maintainers . chaoflow ] ;
35
- platforms = lib . platforms . all ;
37
+ maintainers = [ maintainers . chaoflow ] ;
38
+ platforms = platforms . all ;
36
39
} ;
37
40
}
You can’t perform that action at this time.
0 commit comments