diff --git a/pkgs/development/python-modules/yfinance/default.nix b/pkgs/development/python-modules/yfinance/default.nix index 46540e8e493c..487a3502162e 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;