python3Packages.yfinance: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-07-04 17:35:54 +02:00
committed by GitHub
parent b0b5ca6f17
commit 43c852abe8
@@ -23,7 +23,7 @@
websockets,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "yfinance";
version = "1.5.1";
pyproject = true;
@@ -31,7 +31,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "ranaroussi";
repo = "yfinance";
tag = version;
tag = finalAttrs.version;
hash = "sha256-5ynbdBys7uTcvsKQB44aoe8PmQgqP28wPtOATcv8I7g=";
};
@@ -62,9 +62,7 @@ buildPythonPackage rec {
requests-cache
requests-ratelimiter
];
repair = [
scipy
];
repair = [ scipy ];
};
# Tests require internet access
@@ -75,8 +73,8 @@ buildPythonPackage rec {
meta = {
description = "Module to doiwnload Yahoo! Finance market data";
homepage = "https://github.com/ranaroussi/yfinance";
changelog = "https://github.com/ranaroussi/yfinance/blob/${src.tag}/CHANGELOG.rst";
changelog = "https://github.com/ranaroussi/yfinance/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
})