1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pycryptodomex 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "motionblinds"; 10 version = "0.6.18"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "starkillerOG"; 17 repo = "motion-blinds"; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-EkHrBhlPlavF6qbTF9myDBYh5eHxiZ4OoDzvlSs/LYM="; 20 }; 21 22 propagatedBuildInputs = [ 23 pycryptodomex 24 ]; 25 26 # Project has no tests 27 doCheck = false; 28 29 pythonImportsCheck = [ 30 "motionblinds" 31 ]; 32 33 meta = with lib; { 34 description = "Python library for interfacing with Motion Blinds"; 35 homepage = "https://github.com/starkillerOG/motion-blinds"; 36 changelog = "https://github.com/starkillerOG/motion-blinds/releases/tag/${version}"; 37 license = with licenses; [ mit ]; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}