gigalixir: 1.13.1 -> 1.14.0; switch to fetching from github; modernize (#419954)
This commit is contained in:
@@ -1,28 +1,34 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
python3,
|
||||
fetchPypi,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
git,
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "gigalixir";
|
||||
version = "1.13.1";
|
||||
format = "setuptools";
|
||||
version = "1.14.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-hYIuSLK2HeeXPL28qKvkKwPVpOwObNGrVWbDq6B0/IA=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "gigalixir";
|
||||
repo = "gigalixir-cli";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-D7HbNQ0heQ0aXAA+z0JIwqWlerChPvzXrIGtXz+UiwQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest-runner'," "" \
|
||||
--replace "cryptography==" "cryptography>="
|
||||
--replace-fail "'pytest-runner'," ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
build-system = with python3Packages; [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
importlib-metadata
|
||||
click
|
||||
pygments
|
||||
pyopenssl
|
||||
@@ -32,19 +38,19 @@ python3.pkgs.buildPythonApplication rec {
|
||||
stripe
|
||||
];
|
||||
|
||||
nativeCheckInputs =
|
||||
[
|
||||
git
|
||||
]
|
||||
++ (with python3.pkgs; [
|
||||
httpretty
|
||||
pytestCheckHook
|
||||
sure
|
||||
]);
|
||||
nativeCheckInputs = with python3Packages; [
|
||||
git
|
||||
|
||||
httpretty
|
||||
pytestCheckHook
|
||||
sure
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Test requires network access
|
||||
"test_rollback_without_version"
|
||||
"test_rollback"
|
||||
"test_create_user"
|
||||
# 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
|
||||
@@ -57,11 +63,10 @@ python3.pkgs.buildPythonApplication rec {
|
||||
"gigalixir"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.hostPlatform.isDarwin;
|
||||
meta = {
|
||||
description = "Gigalixir Command-Line Interface";
|
||||
homepage = "https://github.com/gigalixir/gigalixir-cli";
|
||||
license = licenses.mit;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
mainProgram = "gigalixir";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user