1 { lib, buildPythonPackage, fetchPypi, isPy3k
3 , systemd, libyaml, openzwave, cython, pyserial
4 , six, pydispatcher, urwid }:
6 buildPythonPackage rec {
7 pname = "python_openzwave";
13 inherit pname version;
14 sha256 = "6b40c7711383eeb3535cf5504f1cf47cc1ac7018eb820f299642a5a2795aef84";
18 nativeBuildInputs = [ pkg-config ];
19 buildInputs = [ systemd libyaml openzwave cython ];
20 propagatedBuildInputs = [ six urwid pydispatcher pyserial ];
22 # primary location for the .xml files is in /etc/openzwave so we override the
23 # /usr/local/etc lookup instead as that allows us to dump new .xml files into
24 # /etc/openzwave if needed
26 substituteInPlace src-lib/libopenzwave/libopenzwave.pyx \
27 --replace /usr/local/etc/openzwave ${openzwave}/etc/openzwave
30 patches = [ ./cython.patch ];
36 description = "Python wrapper for the OpenZWave C++ library";
37 homepage = "https://github.com/OpenZWave/python-openzwave";
38 license = licenses.gpl3Plus;
39 maintainers = with maintainers; [ ];
40 inherit (openzwave.meta) platforms;