diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-04-10 13:57:17 +0200 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-04-10 13:57:22 +0200 |
commit | ecc1a0ff708d9916fa279b4f1fb931825ed7cd99 (patch) | |
tree | 7c4181d8adb42c54fe774e5d4aa6be6b863e28a4 /pkgs/development/python-modules/splinter | |
parent | ecd2d63dfded6ebe8020143d59c130d2939c42d0 (diff) |
pythonPackages.splinter: fix build
Add six to propagatedBuildInputs. Also enable tests and add dotlambda to maintainers.
Diffstat (limited to 'pkgs/development/python-modules/splinter')
-rw-r--r-- | pkgs/development/python-modules/splinter/default.nix | 42 |
1 files changed, 31 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/splinter/default.nix b/pkgs/development/python-modules/splinter/default.nix index fde5733a864a6..1ae05cab97382 100644 --- a/pkgs/development/python-modules/splinter/default.nix +++ b/pkgs/development/python-modules/splinter/default.nix @@ -1,30 +1,50 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , selenium +, six , flask -, coverage +, pytestCheckHook }: buildPythonPackage rec { pname = "splinter"; version = "0.14.0"; - src = fetchPypi { - inherit pname version; - sha256 = "459e39e7a9f7572db6f1cdb5fdc5ccfc6404f021dccb969ee6287be2386a40db"; + src = fetchFromGitHub { + owner = "cobrateam"; + repo = "splinter"; + rev = version; + sha256 = "0480bqprv8581cvnc80ls91rz9780wvdnfw99zsw44hvy2yg15a6"; }; - propagatedBuildInputs = [ selenium ]; + propagatedBuildInputs = [ + selenium + six + ]; - checkInputs = [ flask coverage ]; + checkInputs = [ + flask + pytestCheckHook + ]; - # No tests included - doCheck = false; + 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" + ]; - meta = { + pythonImportsCheck = [ "splinter" ]; + + meta = with lib; { description = "Browser abstraction for web acceptance testing"; homepage = "https://github.com/cobrateam/splinter"; - license = lib.licenses.bsd3; + license = licenses.bsd3; + maintainers = with maintainers; [ dotlambda ]; }; } |