depot/third_party/nixpkgs/pkgs/development/python-modules/tellduslive/default.nix

47 lines
900 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
docopt,
fetchFromGitHub,
requests,
requests-oauthlib,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "tellduslive";
version = "0.10.12";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "molobrakos";
repo = "tellduslive";
rev = "refs/tags/v${version}";
sha256 = "sha256-fWL+VSvoT+dT0jzD8DZEMxzTlqj4TYGCJPLpeui5q64=";
};
build-system = [ setuptools ];
dependencies = [
docopt
requests
requests-oauthlib
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "tellduslive" ];
meta = with lib; {
description = "Python module to communicate with Telldus Live";
homepage = "https://github.com/molobrakos/tellduslive";
license = licenses.unlicense;
maintainers = with maintainers; [ fab ];
mainProgram = "tellduslive";
};
}