depot/third_party/nixpkgs/pkgs/development/python-modules/splinter/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

73 lines
1.5 KiB
Nix

{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, selenium
, cssselect
, django
, flask
, lxml
, pytestCheckHook
, zope-testbrowser
}:
buildPythonPackage rec {
pname = "splinter";
version = "0.18.1";
disabled = isPy27;
format = "setuptools";
src = fetchFromGitHub {
owner = "cobrateam";
repo = "splinter";
rev = "refs/tags/${version}";
hash = "sha256-5d39e9omc223ugBfVMIsMZh8+NPVxc6q7p2gwZ0fF0o=";
};
propagatedBuildInputs = [
selenium
];
checkInputs = [
cssselect
django
flask
lxml
pytestCheckHook
zope-testbrowser
];
disabledTests = [
# driver is present and fails with a different error during loading
"test_browser_local_driver_not_present"
"test_local_driver_not_present"
];
disabledTestPaths = [
"samples"
# We run neither Chromium nor Firefox nor ...
"tests/test_async_finder.py"
"tests/test_html_snapshot.py"
"tests/test_iframes.py"
"tests/test_mouse_interaction.py"
"tests/test_popups.py"
"tests/test_screenshot.py"
"tests/test_shadow_root.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"
];
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 ];
};
}