python3Packages.xmodem: migrate to pyproject (#534322)
This commit is contained in:
@@ -2,23 +2,28 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
pytest,
|
||||
which,
|
||||
lrzsz,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "xmodem";
|
||||
version = "0.4.7";
|
||||
format = "setuptools";
|
||||
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 ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest
|
||||
which
|
||||
@@ -29,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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user