depot/third_party/nixpkgs/pkgs/development/python-modules/pyvesync/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

37 lines
763 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, requests
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyvesync";
version = "2.0.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-7eGsRy8S6IZQ+UVNN8SoS7tBIYLlujSFr2qFldaxtJE=";
};
propagatedBuildInputs = [
requests
];
# Test are not available (not in PyPI tarball and there are no GitHub releases)
doCheck = false;
pythonImportsCheck = [
"pyvesync"
];
meta = with lib; {
description = "Python library to manage Etekcity Devices and Levoit Air Purifier";
homepage = "https://github.com/webdjoe/pyvesync";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}