at master 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7 httpx, 8 xmltodict, 9 aiohttp, 10}: 11 12buildPythonPackage rec { 13 pname = "py-ccm15"; 14 version = "0.1.2"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "ocalvo"; 19 repo = "py-ccm15"; 20 # Upstream does not have a tag for this release and this is the exact release commit 21 # Therefore it should not be marked unstable 22 # upstream issue: https://github.com/ocalvo/py-ccm15/issues/10 23 tag = "v${version}"; 24 hash = "sha256-QfitJzCFk0gnlcCvvKzuI4fS1lVm79q4xaDZFKKt458="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 httpx 31 xmltodict 32 aiohttp 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 disabledTests = [ 38 # tests use outdated function signature 39 "test_async_set_state" 40 ]; 41 42 pythonImportsCheck = [ "ccm15" ]; 43 44 meta = { 45 changelog = "https://github.com/ocalvo/py-ccm15/releases/tag/${src.tag}"; 46 description = "Python Library to access a Midea CCM15 data converter"; 47 homepage = "https://github.com/ocalvo/py-ccm15"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ pyrox0 ]; 50 }; 51}