1{
2 lib,
3 buildPythonPackage,
4 click,
5 fetchFromGitHub,
6 mock,
7 netifaces,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "wsdiscovery";
15 version = "2.1.2";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchFromGitHub {
21 owner = "andreikop";
22 repo = "python-ws-discovery";
23 rev = "v${version}";
24 hash = "sha256-6LGZogNRCnmCrRXvHq9jmHwqW13KQPpaGaao/52JPtk=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 click
31 netifaces
32 ];
33
34 nativeCheckInputs = [
35 mock
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "wsdiscovery" ];
40
41 meta = with lib; {
42 description = "WS-Discovery implementation for Python";
43 homepage = "https://github.com/andreikop/python-ws-discovery";
44 license = licenses.lgpl3Plus;
45 maintainers = with maintainers; [ fab ];
46 };
47}