Merge pull request #160438 from fabaff/fix-gigalixir

python3Packages.gigalixir: disable failing test

authored by Fabian Affolter and committed by GitHub 3989901c 1f2d753b

+27 -16
+27 -16
pkgs/development/python-modules/gigalixir/default.nix
··· 1 - { buildPythonApplication 1 + { lib 2 + , buildPythonApplication 2 3 , click 3 4 , fetchPypi 4 5 , git 5 6 , httpretty 6 - , lib 7 7 , qrcode 8 8 , pygments 9 9 , pyopenssl ··· 11 11 , requests 12 12 , rollbar 13 13 , stripe 14 + , pythonOlder 14 15 , sure 15 16 }: 16 17 17 18 buildPythonApplication rec { 18 19 pname = "gigalixir"; 19 20 version = "1.2.5"; 21 + format = "setuptools"; 22 + 23 + disabled = pythonOlder "3.7"; 20 24 21 25 src = fetchPypi { 22 26 inherit pname version; 23 - sha256 = "sha256-P70xsI/zwsoSgK1XCPzJSI5NQ58M431kmgo5gHXbaNw="; 27 + hash = "sha256-P70xsI/zwsoSgK1XCPzJSI5NQ58M431kmgo5gHXbaNw="; 24 28 }; 25 29 26 - postPatch = '' 27 - substituteInPlace setup.py \ 28 - --replace "'pytest-runner'," "" \ 29 - --replace "cryptography==" "cryptography>=" 30 - ''; 31 - 32 30 propagatedBuildInputs = [ 33 31 click 32 + pygments 33 + pyopenssl 34 + qrcode 34 35 requests 36 + rollbar 35 37 stripe 36 - rollbar 37 - pygments 38 - qrcode 39 - pyopenssl 40 38 ]; 41 39 42 40 checkInputs = [ 41 + git 43 42 httpretty 43 + pytestCheckHook 44 44 sure 45 - pytestCheckHook 46 - git 45 + ]; 46 + 47 + postPatch = '' 48 + substituteInPlace setup.py \ 49 + --replace "'pytest-runner'," "" \ 50 + --replace "cryptography==" "cryptography>=" 51 + ''; 52 + 53 + disabledTests = [ 54 + # Test requires network access 55 + "test_rollback_without_version" 47 56 ]; 48 57 49 - pythonImportsCheck = [ "gigalixir" ]; 58 + pythonImportsCheck = [ 59 + "gigalixir" 60 + ]; 50 61 51 62 meta = with lib; { 52 63 description = "Gigalixir Command-Line Interface";