Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pyvesync / default.nix
blob393170cfb9f02f116e4cd343b8884469f4b25bbd
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , requests
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "pyvesync";
10   version = "1.3.1";
11   disabled = pythonOlder "3.6";
13   src = fetchPypi {
14     inherit pname version;
15     sha256 = "02fpbyg46mlpc2c1j4zylw9a1h6bacxvigrl3cndsf6fxlhfx15z";
16   };
18   propagatedBuildInputs = [ requests ];
20   # Test are not available (not in PyPI tarball and there are no GitHub releases)
21   doCheck = false;
22   pythonImportsCheck = [ "pyvesync" ];
24   meta = with lib; {
25     description = "Python library to manage Etekcity Devices and Levoit Air Purifier";
26     homepage = "https://github.com/webdjoe/pyvesync";
27     license = with licenses; [ mit ];
28     maintainers = with maintainers; [ fab ];
29   };