depot/third_party/nixpkgs/pkgs/development/python-modules/websockify/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

50 lines
932 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, jwcrypto
, numpy
, pytestCheckHook
, pythonOlder
, redis
, requests
, simplejson
}:
buildPythonPackage rec {
pname = "websockify";
version = "0.11.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "novnc";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-82Fk9qbiiCD5Rts1d14sK/njeN7DcjKMKPqE7S/1WHs=";
};
propagatedBuildInputs = [
jwcrypto
numpy
redis
requests
simplejson
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"websockify"
];
meta = with lib; {
description = "WebSockets support for any application/server";
homepage = "https://github.com/kanaka/websockify";
changelog = "https://github.com/novnc/websockify/releases/tag/v${version}";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ ];
};
}