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";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.14.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;
|
|
|
|
sha256 = "0480bqprv8581cvnc80ls91rz9780wvdnfw99zsw44hvy2yg15a6";
|
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"
|
|
|
|
"tests/test_webdriver.py"
|
|
|
|
"tests/test_webdriver_chrome.py"
|
|
|
|
"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
|
|
|
};
|
|
|
|
}
|