fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
38 lines
677 B
Nix
38 lines
677 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest,
|
|
which,
|
|
lrzsz,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xmodem";
|
|
version = "0.4.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tehmaze";
|
|
repo = "xmodem";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-kwPA/lYiv6IJSKGRuH13tBofZwp19vebwQniHK7A/i8=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
};
|
|
}
|