python3Packages.samsungctl: split off websocket extra

This commit is contained in:
Martin Weinelt 2022-04-07 05:08:10 +02:00
parent 7b12ac7d58
commit 7d4be895ad
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,4 +1,8 @@
{ lib, buildPythonPackage, fetchPypi
{ lib
, buildPythonPackage
, fetchPypi
# extra: websocket
, websocket-client
}:
@ -11,9 +15,12 @@ buildPythonPackage rec {
sha256 = "0ipz3fd65rqkxlb02sql0awc3vnslrwb2pfrsnpfnf8bfgxpbh9g";
};
propagatedBuildInputs = [
websocket-client
];
passthru.extras-require = {
websocket = [
websocket-client
];
# interactive_ui requires curses package
};
# no tests
doCheck = false;