about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/netio/default.nix
blob: 82e5d1641fd8f4115b97b04e299963f1861414f0 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchPypi
, pyopenssl
, pythonOlder
, requests
, setuptools
}:

buildPythonPackage rec {
  pname = "netio";
  version = "1.0.10";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    pname ="Netio";
    inherit version;
    hash = "sha256-+fGs7ZwvspAW4GlO5Hx+gNb+7Mhl9HC4pijHyk+8PYs=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    requests
    pyopenssl
  ];

  pythonImportsCheck = [
    "Netio"
  ];

  # Module has no tests
  doCheck = false;

  meta = with lib; {
    description = "Module for interacting with NETIO devices";
    homepage = "https://github.com/netioproducts/PyNetio";
    changelog = "https://github.com/netioproducts/PyNetio/blob/v${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}