2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pytest, which, lrzsz }:
|
2020-01-04 07:12:06 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xmodem";
|
2021-01-03 12:05:06 +00:00
|
|
|
version = "0.4.6";
|
2020-01-04 07:12:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tehmaze";
|
|
|
|
repo = "xmodem";
|
|
|
|
rev = version;
|
2021-01-03 12:05:06 +00:00
|
|
|
sha256 = "1xx7wd8bnswxa1fv3bfim2gcamii79k7qmwg7dbxbjvrhbcjjc0l";
|
2020-01-04 07:12:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest which lrzsz ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-04 07:12:06 +00:00
|
|
|
description = "Pure python implementation of the XMODEM protocol";
|
|
|
|
maintainers = with maintainers; [ emantor ];
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tehmaze/xmodem";
|
2020-01-04 07:12:06 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|