Merge pull request #119020 from dotlambda/splinter-fix

pythonPackages.splinter: fix build

authored by Sandro and committed by GitHub a73020b2 42f3ca24

+31 -11
+31 -11
pkgs/development/python-modules/splinter/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , fetchPypi 3 + , fetchFromGitHub 4 4 , selenium 5 + , six 5 6 , flask 6 - , coverage 7 + , pytestCheckHook 7 8 }: 8 9 9 10 buildPythonPackage rec { 10 11 pname = "splinter"; 11 12 version = "0.14.0"; 12 13 13 - src = fetchPypi { 14 - inherit pname version; 15 - sha256 = "459e39e7a9f7572db6f1cdb5fdc5ccfc6404f021dccb969ee6287be2386a40db"; 14 + src = fetchFromGitHub { 15 + owner = "cobrateam"; 16 + repo = "splinter"; 17 + rev = version; 18 + sha256 = "0480bqprv8581cvnc80ls91rz9780wvdnfw99zsw44hvy2yg15a6"; 16 19 }; 17 20 18 - propagatedBuildInputs = [ selenium ]; 21 + propagatedBuildInputs = [ 22 + selenium 23 + six 24 + ]; 19 25 20 - checkInputs = [ flask coverage ]; 26 + checkInputs = [ 27 + flask 28 + pytestCheckHook 29 + ]; 21 30 22 - # No tests included 23 - doCheck = false; 31 + disabledTestPaths = [ 32 + "samples" 33 + "tests/test_djangoclient.py" 34 + "tests/test_flaskclient.py" 35 + "tests/test_webdriver.py" 36 + "tests/test_webdriver_chrome.py" 37 + "tests/test_webdriver_firefox.py" 38 + "tests/test_webdriver_remote.py" 39 + "tests/test_zopetestbrowser.py" 40 + ]; 24 41 25 - meta = { 42 + pythonImportsCheck = [ "splinter" ]; 43 + 44 + meta = with lib; { 26 45 description = "Browser abstraction for web acceptance testing"; 27 46 homepage = "https://github.com/cobrateam/splinter"; 28 - license = lib.licenses.bsd3; 47 + license = licenses.bsd3; 48 + maintainers = with maintainers; [ dotlambda ]; 29 49 }; 30 50 }