1{ lib, buildPythonPackage, fetchFromGitHub, pytest, which, lrzsz }:
2
3buildPythonPackage rec {
4 pname = "xmodem";
5 version = "0.4.6";
6
7 src = fetchFromGitHub {
8 owner = "tehmaze";
9 repo = "xmodem";
10 rev = version;
11 sha256 = "1xx7wd8bnswxa1fv3bfim2gcamii79k7qmwg7dbxbjvrhbcjjc0l";
12 };
13
14 checkInputs = [ 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}