depot/third_party/nixpkgs/pkgs/by-name/se/selenium-manager/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
992 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "selenium-manager";
version = "4.18.1";
src = fetchFromGitHub {
owner = "SeleniumHQ";
repo = "selenium";
rev = "selenium-${version}";
hash = "sha256-1C9Epsk9rFlShxHGGzbWl6smrMzPn2h3yCWlzUIMpY8=";
};
sourceRoot = "${src.name}/rust";
cargoHash = "sha256-BystESOFIitw3ER2K1TPOf5luOBvKXFuqc/unL93yRY=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
];
# TODO: enable tests
# The test suite depends on a number of browsers and network requests,
# check the Gentoo package for inspiration
doCheck = false;
meta = with lib; {
description = "Browser automation framework and ecosystem";
homepage = "https://github.com/SeleniumHQ/selenium";
license = licenses.asl20;
maintainers = with maintainers; [ ];
mainProgram = "selenium-manager";
platforms = platforms.all;
};
}