Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 requests, 7 pycryptodome, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "pymitsubishi"; 13 version = "0.1.7"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "pymitsubishi"; 18 repo = "pymitsubishi"; 19 tag = "v${version}"; 20 hash = "sha256-tEmhllXvUwiJG1q7MyBrHPVVxzcZYgzTHzD8jnqfXvA="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ 26 requests 27 pycryptodome 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "pymitsubishi" ]; 33 34 meta = { 35 description = "A Python library for controlling and monitoring Mitsubishi MAC-577IF-2E air conditioners"; 36 homepage = "https://github.com/pymitsubishi/pymitsubishi"; 37 changelog = "https://github.com/pymitsubishi/pymitsubishi/releases/tag/${src.tag}"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ uvnikita ]; 40 }; 41}