mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
commit
63f2f1df49
|
@ -3,7 +3,7 @@
|
|||
, systemd }:
|
||||
|
||||
let
|
||||
version = "2018-11-13";
|
||||
version = "2019-12-08";
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
pname = "openzwave";
|
||||
|
@ -14,8 +14,8 @@ in stdenv.mkDerivation {
|
|||
src = fetchFromGitHub {
|
||||
owner = "home-assistant";
|
||||
repo = "open-zwave";
|
||||
rev = "0679daef6aa5a39e2441a68f7b45cfe022c4d961";
|
||||
sha256 = "1d13maj93i6h792cbvqpx43ffss44dxmvbwj2777vzvvjib8m4n8";
|
||||
rev = "2cd2137025c529835e4893a7b87c3d56605b2681";
|
||||
sha256 = "04g8fb4f4ihakvvsmzcnncgfdd2ikmki7s22i9c6layzdwavbwf1";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ doxygen fontconfig graphviz-nox libxml2 pkgconfig which ];
|
||||
|
|
|
@ -10,5 +10,6 @@ python_openzwave.overridePythonAttrs (oldAttrs: rec {
|
|||
sha256 = "2d500638270ee4f0e7e9e114d9b4402c94c232f314116cdcf88d7c1dc9a44427";
|
||||
};
|
||||
|
||||
patches = [];
|
||||
meta.homepage = https://github.com/home-assistant/python-openzwave;
|
||||
})
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
diff --git a/pyozw_setup.py b/pyozw_setup.py
|
||||
index b201840..37bf2a8 100644
|
||||
--- a/pyozw_setup.py
|
||||
+++ b/pyozw_setup.py
|
||||
@@ -257,13 +257,13 @@ class Template(object):
|
||||
if sys.platform.startswith("win"):
|
||||
return ['Cython']
|
||||
else:
|
||||
- return ['Cython==0.28.6']
|
||||
+ return ['Cython>=0.28.6']
|
||||
|
||||
def build_requires(self):
|
||||
if sys.platform.startswith("win"):
|
||||
return ['Cython']
|
||||
else:
|
||||
- return ['Cython==0.28.6']
|
||||
+ return ['Cython>=0.28.6']
|
||||
|
||||
def build(self):
|
||||
if len(self.ctx['extra_objects']) == 1 and os.path.isfile(self.ctx['extra_objects'][0]):
|
|
@ -1,6 +1,6 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
||||
, pkgconfig
|
||||
, systemd, libyaml, openzwave, cython
|
||||
, systemd, libyaml, openzwave, cython, pyserial
|
||||
, six, pydispatcher, urwid }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -17,7 +17,7 @@ buildPythonPackage rec {
|
|||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ systemd libyaml openzwave cython ];
|
||||
propagatedBuildInputs = [ six urwid pydispatcher ];
|
||||
propagatedBuildInputs = [ six urwid pydispatcher pyserial ];
|
||||
|
||||
# primary location for the .xml files is in /etc/openzwave so we override the
|
||||
# /usr/local/etc lookup instead as that allows us to dump new .xml files into
|
||||
|
@ -27,6 +27,8 @@ buildPythonPackage rec {
|
|||
--replace /usr/local/etc/openzwave ${openzwave}/etc/openzwave
|
||||
'';
|
||||
|
||||
patches = [ ./cython.patch ];
|
||||
|
||||
# no tests available
|
||||
doCheck = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue