depot/third_party/nixpkgs/pkgs/development/python-modules/finvizfinance/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

67 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
beautifulsoup4,
datetime,
lxml,
pandas,
pytest-mock,
pytestCheckHook,
requests,
}:
buildPythonPackage rec {
pname = "finvizfinance";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "lit26";
repo = "finvizfinance";
rev = "refs/tags/v${version}";
hash = "sha256-HCxq8jCT3aHOXeYue7KP5sYzO6nJnB9Sy8gKGZpZHbc=";
};
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 = with lib; {
description = "Finviz Finance information downloader";
homepage = "https://github.com/lit26/finvizfinance";
changelog = "https://github.com/lit26/finvizfinance/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ icyrockcom ];
};
}