mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge pull request #127099 from drewrisinger/dr-pr-websocket-client-update
This commit is contained in:
@@ -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" ];
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user