Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, buildPythonPackage 4, fetchFromGitHub 5, pytest-asyncio 6, pytest-timeout 7, pytestCheckHook 8, pythonOlder 9, setuptools 10}: 11 12buildPythonPackage rec { 13 pname = "pypck"; 14 version = "0.7.17"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "alengwenus"; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-Vlt4+fRULb9mB0ceRmc7MJ50DnF9DAJPHA8iCbNVvcE="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 ]; 29 30 nativeCheckInputs = [ 31 pytest-asyncio 32 pytest-timeout 33 pytestCheckHook 34 ]; 35 36 pytestFlagsArray = [ 37 "--asyncio-mode=auto" 38 ]; 39 40 disabledTests = lib.optionals stdenv.isDarwin [ 41 "test_connection_lost" 42 ]; 43 44 __darwinAllowLocalNetworking = true; 45 46 pythonImportsCheck = [ 47 "pypck" 48 ]; 49 50 meta = with lib; { 51 description = "LCN-PCK library written in Python"; 52 homepage = "https://github.com/alengwenus/pypck"; 53 changelog = "https://github.com/alengwenus/pypck/releases/tag/${version}"; 54 license = with licenses; [ epl20 ]; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}