2022-05-29 09:10:09 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-10-02 15:24:37 +00:00
|
|
|
, python3
|
2021-09-23 18:37:00 +00:00
|
|
|
, git
|
|
|
|
}:
|
|
|
|
|
2022-10-02 15:24:37 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-09-23 18:37:00 +00:00
|
|
|
pname = "gigalixir";
|
2022-08-21 21:17:48 +00:00
|
|
|
version = "1.3.0";
|
2022-02-17 08:20:34 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-10-02 15:24:37 +00:00
|
|
|
src = python3.pkgs.fetchPypi {
|
2021-09-23 18:37:00 +00:00
|
|
|
inherit pname version;
|
2022-08-21 21:17:48 +00:00
|
|
|
hash = "sha256-kNtybgv8j7t1tl6R5ZuC4vj5fnEcEenuNt0twA1kAh0=";
|
2021-09-23 18:37:00 +00:00
|
|
|
};
|
|
|
|
|
2022-10-02 15:24:37 +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
|
2022-02-17 08:20:34 +00:00
|
|
|
qrcode
|
|
|
|
requests
|
|
|
|
rollbar
|
|
|
|
stripe
|
2021-09-23 18:37:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-02-17 08:20:34 +00:00
|
|
|
git
|
2022-10-02 15:24:37 +00:00
|
|
|
] ++ (with python3.pkgs; [
|
2021-09-23 18:37:00 +00:00
|
|
|
httpretty
|
|
|
|
pytestCheckHook
|
2022-02-17 08:20:34 +00:00
|
|
|
sure
|
2022-10-02 15:24:37 +00:00
|
|
|
]);
|
2022-02-17 08:20:34 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test requires network access
|
|
|
|
"test_rollback_without_version"
|
2021-09-23 18:37:00 +00:00
|
|
|
];
|
|
|
|
|
2022-02-17 08:20:34 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"gigalixir"
|
|
|
|
];
|
2021-09-23 18:37:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-29 09:10:09 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|