41 lines
894 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pycryptodomex,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "motionblinds";
version = "0.6.29";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "starkillerOG";
repo = "motion-blinds";
tag = version;
hash = "sha256-oxBdi5NFotvSVN3b9Rno2RGFiZxB7JAKvdiY4t7L8rQ=";
};
build-system = [ setuptools ];
dependencies = [ pycryptodomex ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "motionblinds" ];
meta = with lib; {
description = "Python library for interfacing with Motion Blinds";
homepage = "https://github.com/starkillerOG/motion-blinds";
changelog = "https://github.com/starkillerOG/motion-blinds/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}