summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/wsdiscovery/default.nix
blob: 86cc45eecc722af1d0d2146342f6c5e3172ea0ac (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
{
  lib,
  buildPythonPackage,
  click,
  fetchFromGitHub,
  mock,
  netifaces,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "wsdiscovery";
  version = "2.1.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "andreikop";
    repo = "python-ws-discovery";
    rev = "v${version}";
    hash = "sha256-6LGZogNRCnmCrRXvHq9jmHwqW13KQPpaGaao/52JPtk=";
  };

  build-system = [ setuptools ];

  dependencies = [
    click
    netifaces
  ];

  nativeCheckInputs = [
    mock
    pytestCheckHook
  ];

  pythonImportsCheck = [ "wsdiscovery" ];

  meta = {
    description = "WS-Discovery implementation for Python";
    homepage = "https://github.com/andreikop/python-ws-discovery";
    license = lib.licenses.lgpl3Plus;
    maintainers = with lib.maintainers; [ fab ];
  };
}