mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
python312Packages.yfinance: refactor
This commit is contained in:
parent
ade68e36f2
commit
84065cfaa7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user