python3Packages.xmodem: modernize

This commit is contained in:
Harinn
2026-06-15 21:20:31 +07:00
parent 1f23f971a2
commit a70772a6a4
@@ -8,16 +8,18 @@
lrzsz,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "xmodem";
version = "0.4.7";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "tehmaze";
repo = "xmodem";
tag = version;
sha256 = "sha256-kwPA/lYiv6IJSKGRuH13tBofZwp19vebwQniHK7A/i8=";
tag = finalAttrs.version;
hash = "sha256-kwPA/lYiv6IJSKGRuH13tBofZwp19vebwQniHK7A/i8=";
};
build-system = [ setuptools ];
@@ -32,10 +34,12 @@ buildPythonPackage rec {
pytest
'';
pythonImportsCheck = [ "xmodem" ];
meta = {
description = "Pure python implementation of the XMODEM protocol";
maintainers = with lib.maintainers; [ emantor ];
homepage = "https://github.com/tehmaze/xmodem";
license = lib.licenses.mit;
};
}
})