3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/gigalixir/default.nix

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

71 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, buildPythonApplication
2021-09-23 19:37:00 +01:00
, click
, fetchPypi
, git
, httpretty
, qrcode
, pygments
, pyopenssl
, pytestCheckHook
, requests
, rollbar
, stripe
, pythonOlder
2021-09-23 19:37:00 +01:00
, sure
}:
buildPythonApplication rec {
pname = "gigalixir";
2022-02-01 14:36:31 +00:00
version = "1.2.5";
format = "setuptools";
disabled = pythonOlder "3.7";
2021-09-23 19:37:00 +01:00
src = fetchPypi {
inherit pname version;
hash = "sha256-P70xsI/zwsoSgK1XCPzJSI5NQ58M431kmgo5gHXbaNw=";
2021-09-23 19:37:00 +01:00
};
propagatedBuildInputs = [
click
pygments
pyopenssl
qrcode
requests
rollbar
stripe
2021-09-23 19:37:00 +01:00
];
checkInputs = [
git
2021-09-23 19:37:00 +01:00
httpretty
pytestCheckHook
sure
];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'," "" \
--replace "cryptography==" "cryptography>="
'';
disabledTests = [
# Test requires network access
"test_rollback_without_version"
2021-09-23 19:37:00 +01:00
];
pythonImportsCheck = [
"gigalixir"
];
2021-09-23 19:37:00 +01:00
meta = with lib; {
broken = stdenv.isDarwin;
2021-09-23 19:37:00 +01: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 19:37:00 +01:00
};
}