{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, setuptools, click, pytestCheckHook, }: buildPythonPackage rec { pname = "satel-integra"; version = "0.3.7"; pyproject = true; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "c-soft"; repo = "satel_integra"; tag = version; hash = "sha256-nCFb8NaZQ6TO4aXCSpbbHGkJr3nJVkt1R4hi9mts070="; }; postPatch = '' substituteInPlace setup.py \ --replace "'pytest-runner'," "" ''; build-system = [ setuptools ]; dependencies = [ click ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "satel_integra" ]; meta = { description = "Communication library and basic testing tool for Satel Integra alarm system"; homepage = "https://github.com/c-soft/satel_integra"; changelog = "https://github.com/c-soft/satel_integra/releases/tag/${version}"; license = lib.licenses.mit; maintainers = [ lib.maintainers.jamiemagee ]; }; }