2020-01-04 07:12:06 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, pytest, which, lrzsz }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xmodem";
|
|
|
|
version = "0.4.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tehmaze";
|
|
|
|
repo = "xmodem";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0nz2gxwaq3ys1knpw6zlz3xrc3ziambcirg3fmp3nvzjdq8ma3h0";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest which lrzsz ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|