2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
beautifulsoup4,
|
|
|
|
datetime,
|
|
|
|
lxml,
|
|
|
|
pandas,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
requests,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "finvizfinance";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.1.0";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lit26";
|
|
|
|
repo = "finvizfinance";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-HCxq8jCT3aHOXeYue7KP5sYzO6nJnB9Sy8gKGZpZHbc=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2023-05-24 13:37:59 +00:00
|
|
|
beautifulsoup4
|
|
|
|
datetime
|
|
|
|
lxml
|
|
|
|
pandas
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "finvizfinance" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|