summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/xmodem/default.nix
blob: feb8e524b60b5605c33249bdb828d0254b36ad5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytest,
  which,
  lrzsz,
}:

buildPythonPackage rec {
  pname = "xmodem";
  version = "0.4.7";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "tehmaze";
    repo = "xmodem";
    tag = version;
    sha256 = "sha256-kwPA/lYiv6IJSKGRuH13tBofZwp19vebwQniHK7A/i8=";
  };

  nativeCheckInputs = [
    pytest
    which
    lrzsz
  ];

  checkPhase = ''
    pytest
  '';

  meta = {
    description = "Pure python implementation of the XMODEM protocol";
    maintainers = with lib.maintainers; [ emantor ];
    homepage = "https://github.com/tehmaze/xmodem";
    license = lib.licenses.mit;
  };
}