diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-04-17 08:32:23 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-04-17 08:32:23 +0200 |
commit | 84065cfaa79aad318059eee9dee37a924496736e (patch) | |
tree | 122599fbd9fd842378931f8be24ab407cf7ac818 | |
parent | ade68e36f2828e018334d4e82bd574d775145f4c (diff) |
python312Packages.yfinance: refactor
-rw-r--r-- | pkgs/development/python-modules/yfinance/default.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/yfinance/default.nix b/pkgs/development/python-modules/yfinance/default.nix index 46540e8e493ca..487a3502162e5 100644 --- a/pkgs/development/python-modules/yfinance/default.nix +++ b/pkgs/development/python-modules/yfinance/default.nix @@ -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; |