depot/third_party/nixpkgs/pkgs/development/python-modules/xmodem/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

26 lines
625 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pytest, which, lrzsz }:
buildPythonPackage rec {
pname = "xmodem";
version = "0.4.7";
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;
};
}