python3Packages.hass-nabucasa: 0.34.6 -> 0.37.1
This commit is contained in:
parent
aa94abac64
commit
da2e83490c
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "hass-nabucasa";
|
pname = "hass-nabucasa";
|
||||||
version = "0.34.6";
|
version = "0.37.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nabucasa";
|
owner = "nabucasa";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1lkqwj58qr0vn7zf5mhrhaz973ahj9wjp4mgzvyja1gcdh6amv34";
|
sha256 = "/GFNrLi1I69gUDIwnHa2q/pxkiRl9PKxpKtb56JrmuA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -18,24 +18,12 @@ buildPythonPackage rec {
|
|||||||
sed -i 's/"cryptography.*"/"cryptography"/' setup.py
|
sed -i 's/"cryptography.*"/"cryptography"/' setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patches = [
|
|
||||||
# relax pytz dependency
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/NabuCasa/hass-nabucasa/commit/419e80feddc36c68384c032feda0057515b53eaa.patch";
|
|
||||||
sha256 = "14dgwci8615cwcf27hg7b42s7da50xhyjys3yx446q7ipk8zw4x6";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
acme aiohttp atomicwrites snitun attrs warrant pycognito
|
acme aiohttp atomicwrites snitun attrs warrant pycognito
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest pytest-aiohttp asynctest ];
|
checkInputs = [ pytest pytest-aiohttp asynctest ];
|
||||||
|
|
||||||
# Asynctest's mocking is broken with python3.8
|
|
||||||
# https://github.com/Martiusweb/asynctest/issues/132
|
|
||||||
doCheck = pythonOlder "3.8";
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest tests/
|
pytest tests/
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user