From a1d4803aa4ac7c43e9778c2a8a9938fb449af985 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 17 Feb 2022 09:20:34 +0100 Subject: [PATCH] python3Packages.gigalixir: disable failing test --- .../python-modules/gigalixir/default.nix | 47 ++++++++++++------- 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/gigalixir/default.nix b/pkgs/development/python-modules/gigalixir/default.nix index 99a878700d7f..e1ca84e21861 100644 --- a/pkgs/development/python-modules/gigalixir/default.nix +++ b/pkgs/development/python-modules/gigalixir/default.nix @@ -1,9 +1,9 @@ -{ buildPythonApplication +{ lib +, buildPythonApplication , click , fetchPypi , git , httpretty -, lib , qrcode , pygments , pyopenssl @@ -11,43 +11,54 @@ , requests , rollbar , stripe +, pythonOlder , sure }: buildPythonApplication rec { pname = "gigalixir"; version = "1.2.5"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-P70xsI/zwsoSgK1XCPzJSI5NQ58M431kmgo5gHXbaNw="; + hash = "sha256-P70xsI/zwsoSgK1XCPzJSI5NQ58M431kmgo5gHXbaNw="; }; + propagatedBuildInputs = [ + click + pygments + pyopenssl + qrcode + requests + rollbar + stripe + ]; + + checkInputs = [ + git + httpretty + pytestCheckHook + sure + ]; + postPatch = '' substituteInPlace setup.py \ --replace "'pytest-runner'," "" \ --replace "cryptography==" "cryptography>=" ''; - propagatedBuildInputs = [ - click - requests - stripe - rollbar - pygments - qrcode - pyopenssl + disabledTests = [ + # Test requires network access + "test_rollback_without_version" ]; - checkInputs = [ - httpretty - sure - pytestCheckHook - git + pythonImportsCheck = [ + "gigalixir" ]; - pythonImportsCheck = [ "gigalixir" ]; - meta = with lib; { description = "Gigalixir Command-Line Interface"; homepage = "https://github.com/gigalixir/gigalixir-cli";