2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-10-30 15:09:59 +00:00
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2021-10-01 09:20:50 +00:00
|
|
|
, git
|
|
|
|
}:
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-10-01 09:20:50 +00:00
|
|
|
pname = "gigalixir";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.10.0";
|
2022-02-20 05:27:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2021-10-01 09:20:50 +00:00
|
|
|
inherit pname version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-yIf8a54vA/1q5qhaWsrrROB1IB7X5f/KMoryPew4tAI=";
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'pytest-runner'," "" \
|
|
|
|
--replace "cryptography==" "cryptography>="
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-10-01 09:20:50 +00:00
|
|
|
click
|
|
|
|
pygments
|
|
|
|
pyopenssl
|
2022-02-20 05:27:41 +00:00
|
|
|
qrcode
|
|
|
|
requests
|
|
|
|
rollbar
|
|
|
|
stripe
|
2021-10-01 09:20:50 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-20 05:27:41 +00:00
|
|
|
git
|
2022-10-30 15:09:59 +00:00
|
|
|
] ++ (with python3.pkgs; [
|
2021-10-01 09:20:50 +00:00
|
|
|
httpretty
|
|
|
|
pytestCheckHook
|
2022-02-20 05:27:41 +00:00
|
|
|
sure
|
2022-10-30 15:09:59 +00:00
|
|
|
]);
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test requires network access
|
|
|
|
"test_rollback_without_version"
|
2023-07-15 17:15:38 +00:00
|
|
|
# These following test's are now depraced and removed, check out these commits:
|
|
|
|
# https://github.com/gigalixir/gigalixir-cli/commit/00b758ed462ad8eff6ff0b16cd37fa71f75b2d7d
|
|
|
|
# https://github.com/gigalixir/gigalixir-cli/commit/76fa25f96e71fd75cc22e5439b4a8f9e9ec4e3e5
|
|
|
|
"test_create_config"
|
|
|
|
"test_delete_free_database"
|
|
|
|
"test_get_free_databases"
|
2021-10-01 09:20:50 +00:00
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"gigalixir"
|
|
|
|
];
|
2021-10-01 09:20:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-10-01 09:20:50 +00:00
|
|
|
description = "Gigalixir Command-Line Interface";
|
|
|
|
homepage = "https://github.com/gigalixir/gigalixir-cli";
|
|
|
|
license = licenses.mit;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "gigalixir";
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
|
|
|
}
|