summary refs log tree commit diff
path: root/pkgs/development/python-modules/xmodem/default.nix
blob: a53567f7fa8bdff30c5cdcdaebe7debccb048e7a (plain) (blame)
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
{ lib, buildPythonPackage, fetchFromGitHub, pytest, which, lrzsz }:

buildPythonPackage rec {
  pname = "xmodem";
  version = "0.4.6";

  src = fetchFromGitHub {
    owner = "tehmaze";
    repo = "xmodem";
    rev = version;
    sha256 = "1xx7wd8bnswxa1fv3bfim2gcamii79k7qmwg7dbxbjvrhbcjjc0l";
  };

  checkInputs = [ pytest which lrzsz ];

  checkPhase = ''
    pytest
  '';

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