Files
nixpkgs/pkgs/development/python-modules/finvizfinance/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

65 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
beautifulsoup4,
datetime,
lxml,
pandas,
pytest-mock,
pytestCheckHook,
requests,
}:
buildPythonPackage rec {
pname = "finvizfinance";
version = "1.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "lit26";
repo = "finvizfinance";
tag = "v${version}";
hash = "sha256-QVR0ig51EHdMVzg6wBDpvMGjPnmO2ZGBs2Q0SVxauik=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
dependencies = [
beautifulsoup4
datetime
lxml
pandas
requests
];
pythonImportsCheck = [ "finvizfinance" ];
disabledTests = [
# Tests require network access
"test_finvizfinance_calendar"
"test_finvizfinance_crypto"
"test_forex_performance_percentage"
"test_group_overview"
"test_finvizfinance_insider"
"test_finvizfinance_news"
"test_finvizfinance_finvizfinance"
"test_statements"
"test_screener_overview"
];
meta = {
description = "Finviz Finance information downloader";
homepage = "https://github.com/lit26/finvizfinance";
changelog = "https://github.com/lit26/finvizfinance/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ icyrockcom ];
};
}