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