python3Packages.praw: migrate to finalAttrs
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
websocket-client,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "praw";
|
||||
version = "7.8.2";
|
||||
pyproject = true;
|
||||
@@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "praw-dev";
|
||||
repo = "praw";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-mAXRLo8xBTigtXYRbc6qxjjoRJ0+v0DZeLEwLISh2PE=";
|
||||
};
|
||||
|
||||
@@ -63,8 +63,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Python Reddit API wrapper";
|
||||
homepage = "https://praw.readthedocs.org/";
|
||||
changelog = "https://github.com/praw-dev/praw/blob/v${version}/CHANGES.rst";
|
||||
changelog = "https://github.com/praw-dev/praw/blob/${finalAttrs.src.tag}/CHANGES.rst";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user