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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, python3
2021-09-23 18:37:00 +00:00
, git
}:
python3.pkgs.buildPythonApplication rec {
2021-09-23 18:37:00 +00:00
pname = "gigalixir";
version = "1.3.0";
format = "setuptools";
src = python3.pkgs.fetchPypi {
2021-09-23 18:37:00 +00:00
inherit pname version;
hash = "sha256-kNtybgv8j7t1tl6R5ZuC4vj5fnEcEenuNt0twA1kAh0=";
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"
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
};
}