depot/third_party/nixpkgs/pkgs/development/python-modules/splinter/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

56 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, selenium
, flask
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "splinter";
version = "0.17.0";
src = fetchFromGitHub {
owner = "cobrateam";
repo = "splinter";
rev = version;
hash = "sha256-7QhFz/qBh2ECyeyvjCyqOYy/YrUK7KVX13VC/gem5BQ=";
};
propagatedBuildInputs = [
selenium
];
checkInputs = [
flask
pytestCheckHook
];
disabledTests = [
# driver is present and fails with a different error during loading
"test_local_driver_not_present"
];
disabledTestPaths = [
"samples"
# TODO: requires optional dependencies which should be defined in passthru.optional-dependencies.$name
"tests/test_djangoclient.py"
"tests/test_flaskclient.py"
"tests/test_popups.py"
"tests/test_webdriver.py"
"tests/test_webdriver_chrome.py"
"tests/test_webdriver_edge_chromium.py"
"tests/test_webdriver_firefox.py"
"tests/test_webdriver_remote.py"
"tests/test_zopetestbrowser.py"
];
pythonImportsCheck = [ "splinter" ];
meta = with lib; {
description = "Browser abstraction for web acceptance testing";
homepage = "https://github.com/cobrateam/splinter";
license = licenses.bsd3;
maintainers = with maintainers; [ dotlambda ];
};
}