1{
2 stdenv,
3 lib,
4 python3Packages,
5 fetchFromGitHub,
6 git,
7}:
8
9python3Packages.buildPythonApplication rec {
10 pname = "gigalixir";
11 version = "1.15.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "gigalixir";
16 repo = "gigalixir-cli";
17 tag = "v${version}";
18 hash = "sha256-OCPxOVWHUvH3Tj9bR+aj2VUNNuY5GWhnDaSKRDqLSvI=";
19 };
20
21 postPatch = ''
22 substituteInPlace setup.py \
23 --replace-fail "'pytest-runner'," ""
24 '';
25
26 build-system = with python3Packages; [
27 setuptools
28 ];
29
30 dependencies = with python3Packages; [
31 importlib-metadata
32 click
33 pygments
34 pyopenssl
35 qrcode
36 requests
37 rollbar
38 stripe
39 ];
40
41 nativeCheckInputs = with python3Packages; [
42 git
43
44 httpretty
45 pytestCheckHook
46 sure
47 ];
48
49 disabledTests = [
50 # Test requires network access
51 "test_rollback_without_version"
52 "test_rollback"
53 "test_create_user"
54 # These following test's are now depraced and removed, check out these commits:
55 # https://github.com/gigalixir/gigalixir-cli/commit/00b758ed462ad8eff6ff0b16cd37fa71f75b2d7d
56 # https://github.com/gigalixir/gigalixir-cli/commit/76fa25f96e71fd75cc22e5439b4a8f9e9ec4e3e5
57 "test_create_config"
58 "test_delete_free_database"
59 "test_get_free_databases"
60 ];
61
62 pythonImportsCheck = [
63 "gigalixir"
64 ];
65
66 meta = {
67 description = "Gigalixir Command-Line Interface";
68 homepage = "https://github.com/gigalixir/gigalixir-cli";
69 license = lib.licenses.mit;
70 maintainers = [ ];
71 mainProgram = "gigalixir";
72 };
73}