From 600d787b9b7bb7b82ff4515cfb01925e121ae6ca Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Tue, 15 Jun 2021 13:37:33 -0400 Subject: [PATCH 1/3] python3Packages.websocket-client: 0.58.0 -> 1.1.0 --- .../websocket-client/default.nix | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/websocket-client/default.nix b/pkgs/development/python-modules/websocket-client/default.nix index b6b2c7ee0361..ee09ceb10504 100644 --- a/pkgs/development/python-modules/websocket-client/default.nix +++ b/pkgs/development/python-modules/websocket-client/default.nix @@ -1,27 +1,22 @@ { lib -, backports_ssl_match_hostname , buildPythonPackage , fetchPypi -, isPy27 +, pythonOlder , pytestCheckHook -, six +, pysocks }: buildPythonPackage rec { pname = "websocket-client"; - version = "0.58.0"; + version = "1.1.0"; + disabled = pythonOlder "3.6"; src = fetchPypi { - pname = "websocket_client"; - inherit version; - sha256 = "sha256-Y1CbQdFYrlt/Z+tK0g/su07umUNOc+FANU3D/44JcW8="; + inherit pname version; + sha256 = "sha256-to5JWdcEdo+iDjXJ1QjI3Cu8BB/Y0mfA1zRc/+KCRWg="; }; - propagatedBuildInputs = [ - six - ] ++ lib.optional isPy27 backports_ssl_match_hostname; - - checkInputs = [ pytestCheckHook ]; + checkInputs = [ pytestCheckHook pysocks ]; pythonImportsCheck = [ "websocket" ]; @@ -30,5 +25,6 @@ buildPythonPackage rec { homepage = "https://github.com/websocket-client/websocket-client"; license = licenses.lgpl21Plus; maintainers = with maintainers; [ fab ]; + changelog = "https://github.com/websocket-client/websocket-client/blob/v${version}/ChangeLog"; }; } From 6bf47f4452171e0e5fa4a8494a7bb2fe9a65d11e Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Wed, 16 Jun 2021 12:09:27 -0400 Subject: [PATCH 2/3] python3Packages.jellyfin-apiclient-python: add six dependency --- .../jellyfin-apiclient-python/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix b/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix index 2dc34b883be7..ca96e63060da 100644 --- a/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix +++ b/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix @@ -1,5 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, requests -, websocket-client, pythonOlder }: +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, requests +, six +, websocket-client +}: buildPythonPackage rec { pname = "jellyfin-apiclient-python"; @@ -11,7 +17,11 @@ buildPythonPackage rec { sha256 = "sha256-nSLUa9/jAT6XrHo77kV5HYBxPO/lhcWKqPfpES7ul9A="; }; - propagatedBuildInputs = [ requests websocket-client ]; + propagatedBuildInputs = [ + requests + six + websocket-client + ]; doCheck = false; # no tests pythonImportsCheck = [ "jellyfin_apiclient_python" ]; From 8bc99a162f0aad7239b1253db562be164b59f6ca Mon Sep 17 00:00:00 2001 From: Drew Risinger Date: Wed, 16 Jun 2021 12:24:26 -0400 Subject: [PATCH 3/3] octoprint: pin websocket-client to 0.58.0 --- pkgs/applications/misc/octoprint/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/applications/misc/octoprint/default.nix b/pkgs/applications/misc/octoprint/default.nix index 16937fa57b02..0c0dae0da42e 100644 --- a/pkgs/applications/misc/octoprint/default.nix +++ b/pkgs/applications/misc/octoprint/default.nix @@ -33,6 +33,22 @@ let (mkOverride "unidecode" "0.04.21" "280a6ab88e1f2eb5af79edff450021a0d3f0448952847cd79677e55e58bad051") (mkOverride "sarge" "0.1.5.post0" "1c1ll7pys9vra5cfi8jxlgrgaql6c27l6inpy15aprgqhc4ck36s") + # Requires websocket-client <1.0, >=0.57. Cannot do mkOverride b/c differing underscore/hyphen in pypi source name + ( + self: super: { + websocket-client = super.websocket-client.overridePythonAttrs ( + oldAttrs: rec { + version = "0.58.0"; + src = oldAttrs.src.override { + pname = "websocket_client"; + inherit version; + sha256 = "63509b41d158ae5b7f67eb4ad20fecbb4eee99434e73e140354dc3ff8e09716f"; + }; + } + ); + } + ) + # Octoprint needs zeroconf >=0.24 <0.25. While this should be done in # the mkOverride aboves, this package also has broken tests, so we need # a proper override.