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