Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 33 lines 707 B view raw
1{ lib 2, backports_ssl_match_hostname 3, buildPythonPackage 4, fetchPypi 5, isPy27 6, pytestCheckHook 7, six 8}: 9 10buildPythonPackage rec { 11 pname = "websocket_client"; 12 version = "0.58.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-Y1CbQdFYrlt/Z+tK0g/su07umUNOc+FANU3D/44JcW8="; 17 }; 18 19 propagatedBuildInputs = [ 20 six 21 ] ++ lib.optional isPy27 backports_ssl_match_hostname; 22 23 checkInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "websocket" ]; 26 27 meta = with lib; { 28 description = "Websocket client for Python"; 29 homepage = "https://github.com/websocket-client/websocket-client"; 30 license = licenses.lgpl21Plus; 31 maintainers = with maintainers; [ fab ]; 32 }; 33}