Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions pkgs/development/python-modules/wslink/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
msgpack,
cryptography,
}:

buildPythonPackage rec {
pname = "wslink";
version = "2.3.4";
pyproject = true;

src = fetchFromGitHub {
owner = "kitware";
repo = "wslink";
tag = "v${version}";
hash = "sha256-QTMEZgoV7Ua3x2C2E9Z1NsX35/JcfmpLZDjNd/HzDj8=";
};

sourceRoot = "${src.name}/python";

# add missing version string to dist-info
postPatch = ''
sed -i "/name *= */a\ version='${version}'," setup.py
'';

build-system = [ setuptools ];

dependencies = [
aiohttp
msgpack
];

optional-dependencies = {
ssl = [ cryptography ];
};

pythonImportsCheck = [ "wslink" ];

# doCheck need interacting with the http server
doCheck = false;

meta = {
description = "Python/JavaScript library for communicating over WebSocket";
homepage = "https://github.com/Kitware/wslink";
changelog = "https://github.com/Kitware/wslink/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ qbisi ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19324,6 +19324,8 @@ self: super: with self; {

wsgitools = callPackage ../development/python-modules/wsgitools { };

wslink = callPackage ../development/python-modules/wslink { };

wsme = callPackage ../development/python-modules/wsme { };

wsproto = callPackage ../development/python-modules/wsproto { };
Expand Down