depot/third_party/nixpkgs/pkgs/development/python-modules/gigalixir/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

70 lines
1.1 KiB
Nix

{ stdenv
, lib
, buildPythonApplication
, click
, fetchPypi
, git
, httpretty
, qrcode
, pygments
, pyopenssl
, pytestCheckHook
, requests
, rollbar
, stripe
, pythonOlder
, sure
}:
buildPythonApplication rec {
pname = "gigalixir";
version = "1.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-kNtybgv8j7t1tl6R5ZuC4vj5fnEcEenuNt0twA1kAh0=";
};
propagatedBuildInputs = [
click
pygments
pyopenssl
qrcode
requests
rollbar
stripe
];
checkInputs = [
git
httpretty
pytestCheckHook
sure
];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'," "" \
--replace "cryptography==" "cryptography>="
'';
disabledTests = [
# Test requires network access
"test_rollback_without_version"
];
pythonImportsCheck = [
"gigalixir"
];
meta = with lib; {
broken = stdenv.isDarwin;
description = "Gigalixir Command-Line Interface";
homepage = "https://github.com/gigalixir/gigalixir-cli";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}