nixpkgs/pkgs/tools/misc/gigalixir/default.nix

65 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, python3
, fetchPypi
2021-09-23 18:37:00 +00:00
, git
}:
python3.pkgs.buildPythonApplication rec {
2021-09-23 18:37:00 +00:00
pname = "gigalixir";
2023-06-17 10:00:45 +00:00
version = "1.6.0";
format = "setuptools";
src = fetchPypi {
2021-09-23 18:37:00 +00:00
inherit pname version;
2023-06-17 10:00:45 +00:00
hash = "sha256-01CoCT++mGiwZ40vAjU3OFE74WGWlBuhaTwsNFIR1a0=";
2021-09-23 18:37:00 +00:00
};
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'," "" \
--replace "cryptography==" "cryptography>="
'';
propagatedBuildInputs = with python3.pkgs; [
2021-09-23 18:37:00 +00:00
click
pygments
pyopenssl
qrcode
requests
rollbar
stripe
2021-09-23 18:37:00 +00:00
];
nativeCheckInputs = [
git
] ++ (with python3.pkgs; [
2021-09-23 18:37:00 +00:00
httpretty
pytestCheckHook
sure
]);
disabledTests = [
# Test requires network access
"test_rollback_without_version"
2023-06-17 10:00:45 +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-09-23 18:37:00 +00:00
];
pythonImportsCheck = [
"gigalixir"
];
2021-09-23 18:37:00 +00:00
meta = with lib; {
broken = stdenv.isDarwin;
2021-09-23 18:37:00 +00:00
description = "Gigalixir Command-Line Interface";
homepage = "https://github.com/gigalixir/gigalixir-cli";
license = licenses.mit;
2021-11-03 00:38:27 +00:00
maintainers = with maintainers; [ ];
2021-09-23 18:37:00 +00:00
};
}