mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
41 lines
987 B
Nix
41 lines
987 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "selenium-manager";
|
|
version = "4.25.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SeleniumHQ";
|
|
repo = "selenium";
|
|
rev = "selenium-${version}";
|
|
hash = "sha256-ykZdL2Rn+bU8do3e9zf9pJtInBNRGLcXi5pD1vm7OJY=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/rust";
|
|
|
|
cargoHash = "sha256-8is7lQ+V1Xf+Aturg836jRMoHIJzDoSVJT5ZOd8W51k=";
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.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 = [ ];
|
|
mainProgram = "selenium-manager";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|