diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/gigalixir/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/gigalixir/default.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/gigalixir/default.nix b/nixpkgs/pkgs/tools/misc/gigalixir/default.nix new file mode 100644 index 000000000000..ba52fae855f2 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/gigalixir/default.nix @@ -0,0 +1,58 @@ +{ stdenv +, lib +, python3 +, fetchPypi +, git +}: + +python3.pkgs.buildPythonApplication rec { + pname = "gigalixir"; + version = "1.3.0"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-kNtybgv8j7t1tl6R5ZuC4vj5fnEcEenuNt0twA1kAh0="; + }; + + postPatch = '' + substituteInPlace setup.py \ + --replace "'pytest-runner'," "" \ + --replace "cryptography==" "cryptography>=" + ''; + + propagatedBuildInputs = with python3.pkgs; [ + click + pygments + pyopenssl + qrcode + requests + rollbar + stripe + ]; + + nativeCheckInputs = [ + git + ] ++ (with python3.pkgs; [ + httpretty + pytestCheckHook + sure + ]); + + 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; [ ]; + }; +} |