45 lines
887 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
requests,
requests-oauthlib,
voluptuous,
setuptools,
}:
buildPythonPackage rec {
pname = "pybotvac";
version = "0.0.28";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-XIGG8HmjI3dSq42co2e05xHIYjIM39qVanMJLDqWFCg=";
};
build-system = [ setuptools ];
dependencies = [
requests
requests-oauthlib
voluptuous
];
# Module no tests
doCheck = false;
pythonImportsCheck = [ "pybotvac" ];
meta = with lib; {
description = "Python module for interacting with Neato Botvac Connected vacuum robots";
homepage = "https://github.com/stianaske/pybotvac";
changelog = "https://github.com/stianaske/pybotvac/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}