mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
python3Packages.asteval: migrate to finalAttrs
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
setuptools-scm,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "asteval";
|
||||
version = "1.0.10";
|
||||
pyproject = true;
|
||||
@@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "lmfit";
|
||||
repo = "asteval";
|
||||
tag = version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-Z30H1bSud/VbYnHqRYzyJnDufFM4uBhPcMtVmZ1Sl94=";
|
||||
};
|
||||
|
||||
@@ -36,8 +36,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "AST evaluator of Python expression using ast module";
|
||||
homepage = "https://github.com/lmfit/asteval";
|
||||
changelog = "https://github.com/lmfit/asteval/releases/tag/${src.tag}";
|
||||
changelog = "https://github.com/lmfit/asteval/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user