Merge pull request #215395 from icyrockcom/pythonPackages.finvizfinance
python310Packages.finvizfinance: init at 0.14.5
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, beautifulsoup4
|
||||
, datetime
|
||||
, lxml
|
||||
, pandas
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "finvizfinance";
|
||||
version = "0.14.5";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lit26";
|
||||
repo = "finvizfinance";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-yhOa/CS+9UdI+TVMObBsOqIp9XggMJvNjteSMa5DJcM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "bs4" "beautifulsoup4"
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3529,6 +3529,8 @@ self: super: with self; {
|
||||
|
||||
fints = callPackage ../development/python-modules/fints { };
|
||||
|
||||
finvizfinance = callPackage ../development/python-modules/finvizfinance { };
|
||||
|
||||
fiona = callPackage ../development/python-modules/fiona { };
|
||||
|
||||
fipy = callPackage ../development/python-modules/fipy { };
|
||||
|
||||
Reference in New Issue
Block a user