Merge pull request #160438 from fabaff/fix-gigalixir

python3Packages.gigalixir: disable failing test
This commit is contained in:
Fabian Affolter 2022-02-17 09:44:33 +01:00 committed by GitHub
commit 3989901c89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";