From 96af64292ae353975851cb8fb2370c2ddea6e4a7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 9 Jun 2021 09:00:17 +0200 Subject: [PATCH 1/2] python3Packages.hass-nabucasa: allow later snitun releases --- .../python-modules/hass-nabucasa/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix index 1abd9648e952..f69f140017e0 100644 --- a/pkgs/development/python-modules/hass-nabucasa/default.nix +++ b/pkgs/development/python-modules/hass-nabucasa/default.nix @@ -24,10 +24,6 @@ buildPythonPackage rec { sha256 = "sha256-eQdbAQRKqnJGxnSTkk3gld9TX9MpP3J8LFNYH6peVIY="; }; - postPatch = '' - sed -i 's/"acme.*"/"acme"/' setup.py - ''; - propagatedBuildInputs = [ acme aiohttp @@ -44,11 +40,17 @@ buildPythonPackage rec { pytestCheckHook ]; + postPatch = '' + sed -i 's/"acme.*"/"acme"/' setup.py + substituteInPlace setup.py \ + --replace "snitun==" "snitun>=" + ''; + pythonImportsCheck = [ "hass_nabucasa" ]; meta = with lib; { homepage = "https://github.com/NabuCasa/hass-nabucasa"; - description = "Home Assistant cloud integration by Nabu Casa, inc."; + description = "Python module for the Home Assistant cloud integration"; license = licenses.gpl3Only; maintainers = with maintainers; [ Scriptkiddi ]; }; From 82d99d388a45969ec4f1a644cf16d7fe44118117 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 12 Jun 2021 22:58:18 +0200 Subject: [PATCH 2/2] python3Packages.snitun: 0.21.0 -> 0.27.0 --- .../python-modules/snitun/default.nix | 31 ++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/snitun/default.nix b/pkgs/development/python-modules/snitun/default.nix index f93445a02b00..f09876eadb16 100644 --- a/pkgs/development/python-modules/snitun/default.nix +++ b/pkgs/development/python-modules/snitun/default.nix @@ -1,21 +1,35 @@ -{ lib, stdenv, buildPythonPackage, python, fetchFromGitHub -, attrs, cryptography, async-timeout, pytest-aiohttp, pytestCheckHook +{ lib +, stdenv +, async-timeout +, attrs +, buildPythonPackage +, cryptography +, fetchFromGitHub +, pytest-aiohttp +, pytestCheckHook }: buildPythonPackage rec { pname = "snitun"; - version = "0.21.0"; + version = "0.27.0"; src = fetchFromGitHub { owner = "NabuCasa"; repo = pname; rev = version; - sha256 = "sha256-oZHi/H9HOqGTFuhqPSZXntMzVJ3ZT4zNejezo0cDtqg="; + sha256 = "sha256-vx9F+Nat69Yadd+YpsnBCstnxCEICFJI14TdG6PvstI="; }; - propagatedBuildInputs = [ attrs cryptography async-timeout ]; + propagatedBuildInputs = [ + async-timeout + attrs + cryptography + ]; - checkInputs = [ pytestCheckHook pytest-aiohttp ]; + checkInputs = [ + pytest-aiohttp + pytestCheckHook + ]; disabledTests = lib.optionals stdenv.isDarwin [ "test_multiplexer_data_channel_abort_full" # https://github.com/NabuCasa/snitun/issues/61 @@ -26,10 +40,13 @@ buildPythonPackage rec { "test_peer_listener_timeout" ]; + pythonImportsCheck = [ "snitun" ]; + meta = with lib; { homepage = "https://github.com/nabucasa/snitun"; description = "SNI proxy with TCP multiplexer"; - license = licenses.gpl3; + license = licenses.gpl3Only; maintainers = with maintainers; [ Scriptkiddi ]; + platforms = platforms.linux; }; }