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