2024-03-10 12:46:10 +00:00
|
|
|
{ lib
|
2024-03-17 14:00:55 +00:00
|
|
|
, stdenv
|
2024-03-10 12:46:10 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2024-03-17 14:00:55 +00:00
|
|
|
, darwin
|
2024-03-10 12:46:10 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "selenium-manager";
|
2024-06-22 14:56:11 +00:00
|
|
|
version = "4.22.0";
|
2024-03-10 12:46:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SeleniumHQ";
|
|
|
|
repo = "selenium";
|
|
|
|
rev = "selenium-${version}";
|
2024-06-22 14:56:11 +00:00
|
|
|
hash = "sha256-qBuZgI5SSBwxbSBrAT0W/HzzV2JmPL00hPJ6s57QTeg=";
|
2024-03-10 12:46:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${src.name}/rust";
|
|
|
|
|
2024-06-22 14:56:11 +00:00
|
|
|
cargoHash = "sha256-1CPUOAfBfUeZt5S8t5SM3oyrNwXKHplhHG5idVy4YrE=";
|
2024-03-10 12:46:10 +00:00
|
|
|
|
2024-03-17 14:00:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
|
|
];
|
|
|
|
|
2024-03-10 12:46:10 +00:00
|
|
|
# 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;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2024-03-10 12:46:10 +00:00
|
|
|
mainProgram = "selenium-manager";
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|