at 22.05-pre 851 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-asyncio 5, pytest-timeout 6, pytestCheckHook 7, pythonOlder 8, stdenv 9}: 10 11buildPythonPackage rec { 12 pname = "pypck"; 13 version = "0.7.11"; 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "alengwenus"; 18 repo = pname; 19 rev = version; 20 sha256 = "1jj0y487qcxrprx4x2rs6r7rqsf5m9khk0xhigbvnbyvh8rsd2jr"; 21 }; 22 23 checkInputs = [ 24 pytest-asyncio 25 pytest-timeout 26 pytestCheckHook 27 ]; 28 29 disabledTests = lib.optionals stdenv.isDarwin [ 30 "test_connection_lost" 31 ]; 32 33 __darwinAllowLocalNetworking = true; 34 35 pythonImportsCheck = [ "pypck" ]; 36 37 meta = with lib; { 38 description = "LCN-PCK library written in Python"; 39 homepage = "https://github.com/alengwenus/pypck"; 40 license = with licenses; [ epl20 ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}