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