{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pytest-asyncio, pytest-timeout, pytestCheckHook, setuptools, }: buildPythonPackage rec { pname = "pypck"; version = "0.9.9"; pyproject = true; src = fetchFromGitHub { owner = "alengwenus"; repo = "pypck"; tag = version; hash = "sha256-EsPfPRYp75GML9JMoFPf5U8obh51LjIkg/FFRNkrEOY="; }; postPatch = '' echo "${version}" > VERSION ''; build-system = [ setuptools ]; nativeCheckInputs = [ pytest-asyncio pytest-timeout pytestCheckHook ]; disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_connection_lost" ]; __darwinAllowLocalNetworking = true; pythonImportsCheck = [ "pypck" ]; meta = { description = "LCN-PCK library written in Python"; homepage = "https://github.com/alengwenus/pypck"; changelog = "https://github.com/alengwenus/pypck/releases/tag/${src.tag}"; license = lib.licenses.epl20; maintainers = with lib.maintainers; [ fab ]; }; }