python312Packages.yfinance: refactor

This commit is contained in:
Fabian Affolter 2024-04-17 08:32:23 +02:00
parent ade68e36f2
commit 84065cfaa7

View File

@ -6,30 +6,35 @@
, fetchFromGitHub
, frozendict
, html5lib
, lxml
, multitasking
, numpy
, pandas
, peewee
, pythonOlder
, requests
, lxml
, setuptools
}:
buildPythonPackage rec {
pname = "yfinance";
version = "0.2.38";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ranaroussi";
repo = pname;
repo = "yfinance";
rev = "refs/tags/${version}";
hash = "sha256-ZGwtu2vLcE9pM73umhnFwSzjQnGjTOTtVF607ox7I6E=";
};
propagatedBuildInputs = [
build-system = [
setuptools
];
dependencies = [
appdirs
beautifulsoup4
cryptography
@ -52,7 +57,6 @@ buildPythonPackage rec {
meta = with lib; {
description = "Module to doiwnload Yahoo! Finance market data";
mainProgram = "sample";
homepage = "https://github.com/ranaroussi/yfinance";
changelog = "https://github.com/ranaroussi/yfinance/blob/${version}/CHANGELOG.rst";
license = licenses.asl20;