nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv
2, lib
3, buildPythonApplication
4, click
5, fetchPypi
6, git
7, httpretty
8, qrcode
9, pygments
10, pyopenssl
11, pytestCheckHook
12, requests
13, rollbar
14, stripe
15, pythonOlder
16, sure
17}:
18
19buildPythonApplication rec {
20 pname = "gigalixir";
21 version = "1.2.5";
22 format = "setuptools";
23
24 disabled = pythonOlder "3.7";
25
26 src = fetchPypi {
27 inherit pname version;
28 hash = "sha256-P70xsI/zwsoSgK1XCPzJSI5NQ58M431kmgo5gHXbaNw=";
29 };
30
31 propagatedBuildInputs = [
32 click
33 pygments
34 pyopenssl
35 qrcode
36 requests
37 rollbar
38 stripe
39 ];
40
41 checkInputs = [
42 git
43 httpretty
44 pytestCheckHook
45 sure
46 ];
47
48 postPatch = ''
49 substituteInPlace setup.py \
50 --replace "'pytest-runner'," "" \
51 --replace "cryptography==" "cryptography>="
52 '';
53
54 disabledTests = [
55 # Test requires network access
56 "test_rollback_without_version"
57 ];
58
59 pythonImportsCheck = [
60 "gigalixir"
61 ];
62
63 meta = with lib; {
64 broken = stdenv.isDarwin;
65 description = "Gigalixir Command-Line Interface";
66 homepage = "https://github.com/gigalixir/gigalixir-cli";
67 license = licenses.mit;
68 maintainers = with maintainers; [ ];
69 };
70}