Merge pull request #304499 from fabaff/validate-email-refactor

python312Packages.validate-email: refactor, python312Packages.toggl-cli: 2.4.3 -> 2.4.4

authored by Fabian Affolter and committed by GitHub a0d9c0f6 40e86901

+56 -45
+39 -40
pkgs/development/python-modules/toggl-cli/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , click 4 - , click-completion 5 - , factory-boy 6 - , faker 7 - , fetchPypi 8 - , inquirer 9 - , notify-py 10 - , pbr 11 - , pendulum 12 - , ptable 13 - , pytest-mock 14 - , pytestCheckHook 15 - , pythonOlder 16 - , requests 17 - , twine 18 - , validate-email 19 }: 20 21 buildPythonPackage rec { 22 pname = "toggl-cli"; 23 - version = "2.4.3"; 24 - format = "setuptools"; 25 26 - disabled = pythonOlder "3.6"; 27 28 src = fetchPypi { 29 pname = "togglCli"; 30 inherit version; 31 - hash = "sha256-ncMwiMwYivaFu5jrAsm1oCuXP/PZ2ALT+M+CmV6dtFo="; 32 }; 33 34 - nativeBuildInputs = [ 35 pbr 36 twine 37 ]; 38 39 - propagatedBuildInputs = [ 40 click 41 click-completion 42 inquirer 43 notify-py 44 pbr 45 pendulum 46 - ptable 47 requests 48 validate-email 49 ]; ··· 55 factory-boy 56 ]; 57 58 - postPatch = '' 59 - substituteInPlace requirements.txt \ 60 - --replace "notify-py==0.3.3" "notify-py>=0.3.3" \ 61 - --replace "click==8.0.3" "click>=8.0.3" \ 62 - --replace "pbr==5.8.0" "pbr>=5.8.0" \ 63 - --replace "inquirer==2.9.1" "inquirer>=2.9.1" 64 - substituteInPlace pytest.ini \ 65 - --replace ' --cov toggl -m "not premium"' "" 66 - ''; 67 - 68 preCheck = '' 69 export TOGGL_API_TOKEN=your_api_token 70 export TOGGL_PASSWORD=toggl_password ··· 74 disabledTests = [ 75 "integration" 76 "premium" 77 "test_parsing" 78 "test_type_check" 79 - "test_now" 80 ]; 81 82 - pythonImportsCheck = [ 83 - "toggl" 84 - ]; 85 86 # updates to a bogus tag 87 passthru.skipBulkUpdate = true; 88 89 meta = with lib; { 90 description = "Command line tool and set of Python wrapper classes for interacting with toggl's API"; 91 - mainProgram = "toggl"; 92 homepage = "https://toggl.uhlir.dev/"; 93 license = licenses.mit; 94 maintainers = with maintainers; [ mmahut ]; 95 }; 96 }
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + click, 5 + click-completion, 6 + factory-boy, 7 + faker, 8 + fetchPypi, 9 + inquirer, 10 + notify-py, 11 + pbr, 12 + pendulum, 13 + prettytable, 14 + pytest-mock, 15 + pytestCheckHook, 16 + pythonOlder, 17 + requests, 18 + setuptools, 19 + twine, 20 + validate-email, 21 }: 22 23 buildPythonPackage rec { 24 pname = "toggl-cli"; 25 + version = "2.4.4"; 26 + pyproject = true; 27 28 + disabled = pythonOlder "3.7"; 29 30 src = fetchPypi { 31 pname = "togglCli"; 32 inherit version; 33 + hash = "sha256-P4pv6LMPIWXD04IQw01yo3z3voeV4OmsBOCSJgcrZ6g="; 34 }; 35 36 + postPatch = '' 37 + substituteInPlace requirements.txt \ 38 + --replace-fail "==" ">=" 39 + substituteInPlace pytest.ini \ 40 + --replace ' --cov toggl -m "not premium"' "" 41 + ''; 42 + 43 + build-system = [ 44 pbr 45 + setuptools 46 twine 47 ]; 48 49 + dependencies = [ 50 click 51 click-completion 52 inquirer 53 notify-py 54 pbr 55 pendulum 56 + prettytable 57 requests 58 validate-email 59 ]; ··· 65 factory-boy 66 ]; 67 68 preCheck = '' 69 export TOGGL_API_TOKEN=your_api_token 70 export TOGGL_PASSWORD=toggl_password ··· 74 disabledTests = [ 75 "integration" 76 "premium" 77 + "test_basic_usage" 78 + "test_now" 79 "test_parsing" 80 "test_type_check" 81 ]; 82 83 + pythonImportsCheck = [ "toggl" ]; 84 85 # updates to a bogus tag 86 passthru.skipBulkUpdate = true; 87 88 meta = with lib; { 89 description = "Command line tool and set of Python wrapper classes for interacting with toggl's API"; 90 homepage = "https://toggl.uhlir.dev/"; 91 license = licenses.mit; 92 maintainers = with maintainers; [ mmahut ]; 93 + mainProgram = "toggl"; 94 }; 95 }
+17 -5
pkgs/development/python-modules/validate-email/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi }: 2 3 buildPythonPackage rec { 4 pname = "validate-email"; 5 version = "1.3"; 6 - format = "setuptools"; 7 8 src = fetchPypi { 9 inherit version; 10 pname = "validate_email"; 11 - sha256 = "1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"; 12 }; 13 14 # No tests 15 doCheck = false; 16 17 meta = with lib; { 18 homepage = "https://github.com/syrusakbary/validate_email"; 19 - description = "Verify if an email address is valid and really exists"; 20 license = licenses.lgpl3Plus; 21 - maintainers = [ maintainers.mmahut ]; 22 }; 23 }
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchPypi, 5 + pythonOlder, 6 + setuptools, 7 + }: 8 9 buildPythonPackage rec { 10 pname = "validate-email"; 11 version = "1.3"; 12 + pyproject = true; 13 + 14 + disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit version; 18 pname = "validate_email"; 19 + hash = "sha256-eEcZ3F94C+MZzdGF3IXdk6/r2267lDgRvEx8X5xyrq8="; 20 }; 21 22 + build-system = [ setuptools ]; 23 + 24 # No tests 25 doCheck = false; 26 27 + pythonImportsCheck = [ "validate_email" ]; 28 + 29 meta = with lib; { 30 + description = "Verify if an email address is valid and really exists"; 31 homepage = "https://github.com/syrusakbary/validate_email"; 32 license = licenses.lgpl3Plus; 33 + maintainers = with maintainers; [ mmahut ]; 34 }; 35 }