python313Packages.cyclopts: migrate to finalAttrs
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
trio,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "cyclopts";
|
||||
version = "4.4.4";
|
||||
pyproject = true;
|
||||
@@ -28,7 +28,7 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "BrianPugh";
|
||||
repo = "cyclopts";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-DX/mh1vgoSQoqzKRQg+NcCjfPPwy8WDJG7AfMYtPUSA=";
|
||||
};
|
||||
|
||||
@@ -61,7 +61,7 @@ buildPythonPackage rec {
|
||||
pytestCheckHook
|
||||
syrupy
|
||||
]
|
||||
++ lib.concatAttrValues optional-dependencies;
|
||||
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
|
||||
|
||||
pythonImportsCheck = [ "cyclopts" ];
|
||||
|
||||
@@ -80,8 +80,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Module to create CLIs based on Python type hints";
|
||||
homepage = "https://github.com/BrianPugh/cyclopts";
|
||||
changelog = "https://github.com/BrianPugh/cyclopts/releases/tag/${src.tag}";
|
||||
changelog = "https://github.com/BrianPugh/cyclopts/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user