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