Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, buildPythonPackage, fetchFromGitHub, setuptools, selenium, firefox, geckodriver, psutil, pytestCheckHook, which, writableTmpDirAsHomeHook, stdenv,}:
buildPythonPackage (finalAttrs: { pname = "helium"; version = "7.0.3"; pyproject = true;
src = fetchFromGitHub { owner = "mherrmann"; repo = "helium"; tag = "v${finalAttrs.version}"; hash = "sha256-I3qLp3v6aIwGIelzNE5gRnvp/eHVPfzJijUxlT28Wqs="; };
build-system = [ setuptools ];
dependencies = [ selenium ];
nativeCheckInputs = [ firefox geckodriver psutil pytestCheckHook which writableTmpDirAsHomeHook ];
# helium doesn't support testing on all platforms doCheck = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64);
# Selenium setup preCheck = '' export TEST_BROWSER=firefox export SE_OFFLINE=true '';
disabledTestPaths = [ # All of the tests here fail, maybe because we force a driver to be found via envvars? "tests/api/test_no_driver.py"
# New tests, not sure why they fail. Maybe due to forced firefox? "tests/api/test_write.py" ];
pythonImportsCheck = [ "helium" ];
meta = { description = "Lighter web automation with Python"; homepage = "https://github.com/mherrmann/helium"; changelog = "https://github.com/mherrmann/helium/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; teams = with lib.teams; [ ngi ]; };})