blob: ac95520aa2eb7e63e0bbfc5cf86167f71cae7dc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
msgpack,
cryptography,
}:
buildPythonPackage (finalAttrs: {
pname = "wslink";
version = "2.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "kitware";
repo = "wslink";
tag = "v${finalAttrs.version}";
hash = "sha256-g1I8qCuqfv+pA3IP7b57PZ7vCsykpfJNG97NgJ+N5lE=";
};
sourceRoot = "${finalAttrs.src.name}/python";
# add missing version string to dist-info
postPatch = ''
sed -i "/name *= */a\ version='${finalAttrs.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/v${finalAttrs.version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ qbisi ];
};
})
|