bandwhich: 0.23.0 -> 0.23.1; move to by-name; nixfmt; useFetchCargoVendor (#356934)
[NixPkgs.git] / pkgs / by-name / se / serial-unit-testing / package.nix
blob9971033ea0b6ec1eb34e84cb625068cac152d529
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   udev,
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "serial-unit-testing";
11   version = "0.2.4";
13   src = fetchFromGitHub {
14     owner = "markatk";
15     repo = "serial-unit-testing";
16     rev = "v${version}";
17     hash = "sha256-SLwTwEQdwbus9RFskFjU8m4fS9Pnp8HsgnKkBvTqmSI=";
18   };
20   cargoHash = "sha256-PoV2v0p0L3CTtC9VMAx2Z/ZsSAIFi2gh2TtOp64S6ZQ=";
22   nativeBuildInputs = [
23     pkg-config
24   ];
26   buildInputs = [
27     udev
28   ];
30   # tests require a serial port
31   doCheck = false;
33   meta = with lib; {
34     description = "Automate testing of serial communication with any serial port device";
35     homepage = "https://github.com/markatk/serial-unit-testing";
36     changelog = "https://github.com/markatk/serial-unit-testing/blob/v${version}/CHANGELOG.md";
37     license = licenses.mit;
38     maintainers = with maintainers; [ rudolfvesely ];
39     mainProgram = "sut";
40   };