about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyownet/default.nix
blob: 9a368c26087eb65530107863aa97050c4252f382 (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
{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "pyownet";
  version = "0.10.0.post1";

  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "4f2fa4471c2f806b35090bdc6c092305c6eded3ff3736f8b586d35bdb157de62";
  };

  postPatch = ''
    sed -i '/use_2to3/d' setup.py
  '';

  # tests access network
  doCheck = false;

  pythonImportsCheck = [ "pyownet.protocol" ];

  meta = with lib; {
    description = "Python OWFS client library (owserver protocol)";
    homepage = "https://github.com/miccoli/pyownet";
    license = licenses.lgpl3Plus;
    maintainers = with maintainers; [ dotlambda ];
  };
}