1{ lib, buildPythonPackage, fetchFromGitHub, pytest, which, lrzsz }: 2 3buildPythonPackage rec { 4 pname = "xmodem"; 5 version = "0.4.7"; 6 7 src = fetchFromGitHub { 8 owner = "tehmaze"; 9 repo = "xmodem"; 10 rev = "refs/tags/${version}"; 11 sha256 = "sha256-kwPA/lYiv6IJSKGRuH13tBofZwp19vebwQniHK7A/i8="; 12 }; 13 14 nativeCheckInputs = [ pytest which lrzsz ]; 15 16 checkPhase = '' 17 pytest 18 ''; 19 20 meta = with lib; { 21 description = "Pure python implementation of the XMODEM protocol"; 22 maintainers = with maintainers; [ emantor ]; 23 homepage = "https://github.com/tehmaze/xmodem"; 24 license = licenses.mit; 25 }; 26}