git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #160438 from fabaff/fix-gigalixir

python3Packages.gigalixir: disable failing test

commit3989901c8927e28cd082163bdac7787f5ef322c5 authorFabian Affolter <fabian@affolter-engineering.ch> dateThu 17 Feb 2022, 09:44 (5 years ago) parent1f2d753a1d4803
1 file changed+27−16
pkgs/development/python-modules/gigalixir/default.nix+27−16
pkgs/development/python-modules/gigalixir/default.nix+27−16
@@ -1,9 +1,9 @@
1−{ buildPythonApplication
1+{ lib
2+, buildPythonApplication
23, click
34, fetchPypi
45, git
56, httpretty
6−, lib
77, qrcode
88, pygments
99, pyopenssl
@@ -11,42 +11,53 @@
1111, requests
1212, rollbar
1313, stripe
14+, pythonOlder
1415, sure
1516}:
1617
1718buildPythonApplication rec {
1819 pname = "gigalixir";
1920 version = "1.2.5";
21+ format = "setuptools";
22+
23+ disabled = pythonOlder "3.7";
2024
2125 src = fetchPypi {
2226 inherit pname version;
23− sha256 = "sha256-P70xsI/zwsoSgK1XCPzJSI5NQ58M431kmgo5gHXbaNw=";
27+ hash = "sha256-P70xsI/zwsoSgK1XCPzJSI5NQ58M431kmgo5gHXbaNw=";
2428 };
2529
26− postPatch = ''
27− substituteInPlace setup.py \
28− --replace "'pytest-runner'," "" \
29− --replace "cryptography==" "cryptography>="
30− '';
31−
3230 propagatedBuildInputs = [
3331 click
34− requests
35− stripe
36− rollbar
3732 pygments
38− qrcode
3933 pyopenssl
34+ qrcode
35+ requests
36+ rollbar
37+ stripe
4038 ];
4139
4240 checkInputs = [
41+ git
4342 httpretty
44− sure
4543 pytestCheckHook
46− git
44+ sure
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"
4756 ];
4857
49− pythonImportsCheck = [ "gigalixir" ];
58+ pythonImportsCheck = [
59+ "gigalixir"
60+ ];
5061
5162 meta = with lib; {
5263 description = "Gigalixir Command-Line Interface";