lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #202104 from dotlambda/robotframework-seleniumlibrary-fix

authored by

Martin Weinelt and committed by
GitHub
debe1b93 20fc9484

+141 -9
+40
pkgs/development/python-modules/pytest-mockito/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pytest 5 + , mockito 6 + , pytestCheckHook 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "pytest-mockito"; 11 + version = "0.0.4"; 12 + 13 + format = "setuptools"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "kaste"; 17 + repo = "pytest-mockito"; 18 + rev = version; 19 + hash = "sha256-vY/i1YV1lo4mZvnxsXBOyaq31YTiF0BY6PTVwdVX10I="; 20 + }; 21 + 22 + buildInputs = [ 23 + pytest 24 + ]; 25 + 26 + propagatedBuildInputs = [ 27 + mockito 28 + ]; 29 + 30 + checkInputs = [ 31 + pytestCheckHook 32 + ]; 33 + 34 + meta = { 35 + description = "Base fixtures for mockito"; 36 + homepage = "https://github.com/kaste/pytest-mockito"; 37 + license = lib.licenses.mit; 38 + maintainers = with lib.maintainers; [ dotlambda ]; 39 + }; 40 + }
+53
pkgs/development/python-modules/robotframework-pythonlibcore/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , pythonOlder 4 + , fetchFromGitHub 5 + , fetchpatch 6 + , pytest-mockito 7 + , pytestCheckHook 8 + , robotframework 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "robotframework-pythonlibcore"; 13 + version = "4.0.0"; 14 + 15 + disabled = pythonOlder "3.7"; 16 + 17 + format = "setuptools"; 18 + 19 + src = fetchFromGitHub { 20 + owner = "robotframework"; 21 + repo = "PythonLibCore"; 22 + rev = "v${version}"; 23 + hash = "sha256-86o5Lh9zWo4vUF2186dN7e8tTUu5PIxM/ZukPwNl0S8="; 24 + }; 25 + 26 + patches = [ 27 + (fetchpatch { 28 + name = "fix-finding-version.patch"; 29 + url = "https://github.com/robotframework/PythonLibCore/commit/84c73979e309f59de057ae6a77725ab0f468b71f.patch"; 30 + hash = "sha256-zrjsNvXpJDLpXql200NV+QGWFLtnRVZTeAjT52dRn2s="; 31 + }) 32 + ]; 33 + 34 + checkInputs = [ 35 + pytest-mockito 36 + pytestCheckHook 37 + robotframework 38 + ]; 39 + 40 + preCheck = '' 41 + export PYTHONPATH="atest:utest/helpers:$PYTHONPATH" 42 + ''; 43 + 44 + pythonImportsCheck = [ "robotlibcore" ]; 45 + 46 + meta = { 47 + changelog = "https://github.com/robotframework/PythonLibCore/blob/${src.rev}/docs/PythonLibCore-${version}.rst"; 48 + description = "Tools to ease creating larger test libraries for Robot Framework using Python"; 49 + homepage = "https://github.com/robotframework/PythonLibCore"; 50 + license = lib.licenses.asl20; 51 + maintainers = with lib.maintainers; [ dotlambda ]; 52 + }; 53 + }
+44 -9
pkgs/development/python-modules/robotframework-seleniumlibrary/default.nix
··· 1 - { stdenv, lib, buildPythonPackage, fetchFromGitHub, python, robotframework, selenium, mockito, robotstatuschecker, approvaltests }: 1 + { lib 2 + , stdenv 3 + , buildPythonPackage 4 + , fetchFromGitHub 5 + , python 6 + , robotframework 7 + , robotframework-pythonlibcore 8 + , selenium 9 + , approvaltests 10 + , pytest-mockito 11 + , pytestCheckHook 12 + , robotstatuschecker 13 + }: 2 14 3 15 buildPythonPackage rec { 4 16 version = "6.0.0"; ··· 12 24 sha256 = "1rjzz6mrx4zavcck2ry8269rf3dkvvs1qfa9ra7dkppbarrjin3f"; 13 25 }; 14 26 15 - propagatedBuildInputs = [ robotframework selenium ]; 16 - checkInputs = [ mockito robotstatuschecker approvaltests ]; 27 + propagatedBuildInputs = [ 28 + robotframework 29 + robotframework-pythonlibcore 30 + selenium 31 + ]; 32 + 33 + checkInputs = [ 34 + approvaltests 35 + pytest-mockito 36 + pytestCheckHook 37 + robotstatuschecker 38 + ]; 39 + 40 + disabledTestPaths = [ 41 + # https://github.com/robotframework/SeleniumLibrary/issues/1804 42 + "utest/test/keywords/test_webdrivercache.py" 43 + ]; 17 44 18 - # Only execute Unit Tests. Acceptance Tests require headlesschrome, currently 19 - # not available in nixpkgs 20 - checkPhase = '' 21 - ${python.interpreter} utest/run.py 22 - ''; 45 + disabledTests = [ 46 + "test_create_opera_executable_path_not_set" 47 + "test_create_opera_executable_path_set" 48 + "test_create_opera_with_options" 49 + "test_create_opera_with_service_log_path_real_path" 50 + "test_get_executable_path" 51 + "test_get_ff_profile_instance_FirefoxProfile" 52 + "test_has_options" 53 + "test_importer" 54 + "test_log_file_with_index_exist" 55 + "test_opera" 56 + "test_single_method" 57 + ]; 23 58 24 59 meta = with lib; { 25 - broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; 60 + changelog = "https://github.com/robotframework/SeleniumLibrary/blob/${src.rev}/docs/SeleniumLibrary-${version}.rst"; 26 61 description = "Web testing library for Robot Framework"; 27 62 homepage = "https://github.com/robotframework/SeleniumLibrary"; 28 63 license = licenses.asl20;
+4
pkgs/top-level/python-packages.nix
··· 7059 7059 7060 7060 pysyncthru = callPackage ../development/python-modules/pysyncthru { }; 7061 7061 7062 + pytest-mockito = callPackage ../development/python-modules/pytest-mockito { }; 7063 + 7062 7064 python-codon-tables = callPackage ../development/python-modules/python-codon-tables { }; 7063 7065 7064 7066 python-crfsuite = callPackage ../development/python-modules/python-crfsuite { }; ··· 9811 9813 robotframework = callPackage ../development/python-modules/robotframework { }; 9812 9814 9813 9815 robotframework-databaselibrary = callPackage ../development/python-modules/robotframework-databaselibrary { }; 9816 + 9817 + robotframework-pythonlibcore = callPackage ../development/python-modules/robotframework-pythonlibcore { }; 9814 9818 9815 9819 robotframework-requests = callPackage ../development/python-modules/robotframework-requests { }; 9816 9820