2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-04-12 18:23:04 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, selenium
|
2021-04-12 18:23:04 +00:00
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
, flask
|
2021-04-12 18:23:04 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "splinter";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "0.17.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cobrateam";
|
|
|
|
repo = "splinter";
|
|
|
|
rev = version;
|
2021-12-30 13:39:12 +00:00
|
|
|
hash = "sha256-7QhFz/qBh2ECyeyvjCyqOYy/YrUK7KVX13VC/gem5BQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
selenium
|
|
|
|
six
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
checkInputs = [
|
|
|
|
flask
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"samples"
|
|
|
|
"tests/test_djangoclient.py"
|
|
|
|
"tests/test_flaskclient.py"
|
2021-07-03 03:11:41 +00:00
|
|
|
"tests/test_popups.py"
|
2021-04-12 18:23:04 +00:00
|
|
|
"tests/test_webdriver.py"
|
|
|
|
"tests/test_webdriver_chrome.py"
|
2021-12-06 16:07:01 +00:00
|
|
|
"tests/test_webdriver_edge_chromium.py"
|
2021-04-12 18:23:04 +00:00
|
|
|
"tests/test_webdriver_firefox.py"
|
|
|
|
"tests/test_webdriver_remote.py"
|
|
|
|
"tests/test_zopetestbrowser.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
pythonImportsCheck = [ "splinter" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Browser abstraction for web acceptance testing";
|
|
|
|
homepage = "https://github.com/cobrateam/splinter";
|
2021-04-12 18:23:04 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|