diff --git a/pkgs/development/python-modules/yfinance/default.nix b/pkgs/development/python-modules/yfinance/default.nix index 18e86dc16102..bc270fbb8e65 100644 --- a/pkgs/development/python-modules/yfinance/default.nix +++ b/pkgs/development/python-modules/yfinance/default.nix @@ -1,35 +1,39 @@ -{ lib -, appdirs -, beautifulsoup4 -, buildPythonPackage -, cryptography -, fetchFromGitHub -, frozendict -, html5lib -, multitasking -, numpy -, pandas -, peewee -, pythonOlder -, requests -, lxml +{ + lib, + appdirs, + beautifulsoup4, + buildPythonPackage, + cryptography, + fetchFromGitHub, + frozendict, + html5lib, + lxml, + multitasking, + numpy, + pandas, + peewee, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { pname = "yfinance"; - version = "0.2.37"; - format = "setuptools"; + version = "0.2.38"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "ranaroussi"; - repo = pname; + repo = "yfinance"; rev = "refs/tags/${version}"; - hash = "sha256-rptCZ4Yiz6VbV/woHN6JpRNsZL4SrqepoIw4tYpU4x0="; + hash = "sha256-ZGwtu2vLcE9pM73umhnFwSzjQnGjTOTtVF607ox7I6E="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ appdirs beautifulsoup4 cryptography @@ -46,13 +50,10 @@ buildPythonPackage rec { # Tests require internet access doCheck = false; - pythonImportsCheck = [ - "yfinance" - ]; + pythonImportsCheck = [ "yfinance" ]; 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;