Merge pull request #110653 from mweinelt/home-assistant

This commit is contained in:
Sandro 2021-01-25 01:16:20 +01:00 committed by GitHub
commit 81db4e543c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 42 additions and 21 deletions

View File

@ -1,8 +1,17 @@
{ lib, stdenv, buildPythonPackage, isPy27, fetchFromGitHub, itsdangerous, python-multipart { lib
, pytestCheckHook, starlette, httpx, pytest-asyncio }: , buildPythonPackage
, isPy27
, fetchFromGitHub
, itsdangerous
, python-multipart
, pytestCheckHook
, starlette
, httpx
, pytest-asyncio
}:
buildPythonPackage rec { buildPythonPackage rec {
version = "0.7.1"; version = "0.8";
pname = "asgi-csrf"; pname = "asgi-csrf";
disabled = isPy27; disabled = isPy27;
@ -11,7 +20,7 @@ buildPythonPackage rec {
owner = "simonw"; owner = "simonw";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1hhqrb9r46y6i3d3w6hc9zm6yyikdyd2k5pcbyw0r9fl959yi4hf"; sha256 = "sha256-0I/p9SjVVZhJQeR7s1R3tooP9XMNLPlcxl0dBSzsVaw=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -26,10 +35,7 @@ buildPythonPackage rec {
starlette starlette
]; ];
# tests fail while importing a private module from httpx doCheck = false; # asgi-lifespan missing
# E ModuleNotFoundError: No module named 'httpx._content_streams'
# https://github.com/simonw/asgi-csrf/issues/18
doCheck = false;
pythonImportsCheck = [ "asgi_csrf" ]; pythonImportsCheck = [ "asgi_csrf" ];

View File

@ -12,20 +12,20 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyatmo"; pname = "pyatmo";
version = "4.2.1"; version = "4.2.2";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jabesq"; owner = "jabesq";
repo = "netatmo-api-python"; repo = "pyatmo";
rev = "v${version}"; rev = "v${version}";
sha256 = "12lmjhqjn71a358nkpzl3dwgiwmmz4lcv9f0qf69ngznpiirk28m"; sha256 = "sha256-3IxDDLa8KMHVkHAeTmdNVRPc5aKzF3VwL2kKnG8Fp7I=";
}; };
postPatch = '' postPatch = ''
substituteInPlace setup.cfg \ substituteInPlace setup.cfg \
--replace "oauthlib~=3.1.0" "oauthlib" \ --replace "oauthlib~=3.1" "oauthlib" \
--replace "requests~=2.23.0" "requests" --replace "requests~=2.24" "requests"
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,18 +1,33 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, requests }: { lib
, buildPythonPackage
, fetchPypi
, requests
, requests_oauthlib
, voluptuous
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pybotvac"; pname = "pybotvac";
version = "0.0.18"; version = "0.0.20";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "e983c9ffc0734c2e5a7c2adf5d0d0dfe399d94157c590ef70fad765f882c341f"; sha256 = "sha256-1NnTSO4vO3Ryt4vYD5ZTQGr241GqA2KsGRBVowSTCzM=";
}; };
propagatedBuildInputs = [ requests ]; propagatedBuildInputs = [
requests
requests_oauthlib
voluptuous
];
# no tests
doCheck = false;
pythonImportsCheck = [ "pybotvac" ];
meta = with lib; { meta = with lib; {
description = "Python package for controlling Neato pybotvac Connected vacuum robot"; description = "Python module for interacting with Neato Botvac Connected vacuum robots";
homepage = "https://github.com/stianaske/pybotvac"; homepage = "https://github.com/stianaske/pybotvac";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ elseym ]; maintainers = with maintainers; [ elseym ];

View File

@ -2,7 +2,7 @@
# Do not edit! # Do not edit!
{ {
version = "2021.1.4"; version = "2021.1.5";
components = { components = {
"abode" = ps: with ps; [ abodepy ]; "abode" = ps: with ps; [ abodepy ];
"accuweather" = ps: with ps; [ accuweather ]; "accuweather" = ps: with ps; [ accuweather ];

View File

@ -57,7 +57,7 @@ let
extraBuildInputs = extraPackages py.pkgs; extraBuildInputs = extraPackages py.pkgs;
# Don't forget to run parse-requirements.py after updating # Don't forget to run parse-requirements.py after updating
hassVersion = "2021.1.4"; hassVersion = "2021.1.5";
in with py.pkgs; buildPythonApplication rec { in with py.pkgs; buildPythonApplication rec {
pname = "homeassistant"; pname = "homeassistant";
@ -76,7 +76,7 @@ in with py.pkgs; buildPythonApplication rec {
owner = "home-assistant"; owner = "home-assistant";
repo = "core"; repo = "core";
rev = version; rev = version;
sha256 = "03aa7kd216rnp8h80nv002ahafiy0031lxk1bkwcirrznphcw7sj"; sha256 = "sha256-xi5rHZlhwgEHll3TFlRu7D963tdcQNMmWcoXVjEFLXo=";
}; };
# leave this in, so users don't have to constantly update their downstream patch handling # leave this in, so users don't have to constantly update their downstream patch handling