treewide: migrate my 'pkgs/by-name' python packages to finalAttrs (#481613)

This commit is contained in:
Bruno BELANYI
2026-01-19 16:45:25 +00:00
committed by GitHub
6 changed files with 43 additions and 32 deletions
+3 -3
View File
@@ -5,7 +5,7 @@
withTeXLive ? true,
texliveSmall,
}:
python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "cgt-calc";
version = "1.13.0";
pyproject = true;
@@ -13,7 +13,7 @@ python3Packages.buildPythonApplication rec {
src = fetchFromGitHub {
owner = "KapJI";
repo = "capital-gains-calculator";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-y/Y05wG89nccXyxfjqazyPJhd8dOkfwRJre+Rzx97Hw=";
};
@@ -45,4 +45,4 @@ python3Packages.buildPythonApplication rec {
maintainers = with lib.maintainers; [ ambroisie ];
platforms = lib.platforms.unix;
};
}
})
+21 -14
View File
@@ -5,8 +5,13 @@
gnugrep,
python3,
}:
python3.pkgs.buildPythonApplication rec {
let
runtimeDeps = [
coccinelle
gnugrep
];
in
python3.pkgs.buildPythonApplication (finalAttrs: {
pname = "cvehound";
version = "1.2.1";
pyproject = true;
@@ -14,19 +19,10 @@ python3.pkgs.buildPythonApplication rec {
src = fetchFromGitHub {
owner = "evdenis";
repo = "cvehound";
tag = version;
tag = finalAttrs.version;
hash = "sha256-UvjmlAm/8B4KfE9grvvgn37Rui+ZRfs2oTLqYYgqcUQ=";
};
makeWrapperArgs = [
"--prefix PATH : ${
lib.makeBinPath [
coccinelle
gnugrep
]
}"
];
build-system = with python3.pkgs; [
setuptools
];
@@ -45,10 +41,21 @@ python3.pkgs.buildPythonApplication rec {
# Tries to clone the kernel sources
doCheck = false;
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath finalAttrs.passthru.runtimeDeps)
];
passthru = {
inherit runtimeDeps;
};
meta = {
description = "Tool to check linux kernel source dump for known CVEs";
homepage = "https://github.com/evdenis/cvehound";
changelog = "https://github.com/evdenis/cvehound/blob/${src.rev}/ChangeLog";
changelog = "https://github.com/evdenis/cvehound/blob/${finalAttrs.src.rev}/ChangeLog";
# See https://github.com/evdenis/cvehound/issues/22
license = with lib.licenses; [
gpl2Only
@@ -56,4 +63,4 @@ python3.pkgs.buildPythonApplication rec {
];
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})
+3 -3
View File
@@ -4,7 +4,7 @@
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
python3.pkgs.buildPythonApplication (finalAttrs: {
pname = "fertilizer";
version = "0.3.0";
pyproject = true;
@@ -12,7 +12,7 @@ python3.pkgs.buildPythonApplication rec {
src = fetchFromGitHub {
owner = "moleculekayak";
repo = "fertilizer";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-sDoAjEiKxHf+HtFLZr6RwuXN+rl0ZQnFUoQ09QiE6Xc=";
};
@@ -40,4 +40,4 @@ python3.pkgs.buildPythonApplication rec {
maintainers = with lib.maintainers; [ ambroisie ];
mainProgram = "fertilizer";
};
}
})
+3 -3
View File
@@ -4,7 +4,7 @@
python3Packages,
}:
python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "nemorosa";
version = "0.4.1";
pyproject = true;
@@ -12,7 +12,7 @@ python3Packages.buildPythonApplication rec {
src = fetchFromGitHub {
owner = "KyokoMiki";
repo = "nemorosa";
tag = version;
tag = finalAttrs.version;
hash = "sha256-AqFjpEakEZ21iXmIIxhX+ez2aI/RMsLaUoECipQcaM4=";
};
@@ -62,4 +62,4 @@ python3Packages.buildPythonApplication rec {
maintainers = with lib.maintainers; [ ambroisie ];
mainProgram = "nemorosa";
};
}
})
+4 -4
View File
@@ -17,7 +17,7 @@ let
sox
];
in
python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "smoked-salmon";
version = "0.9.7.4";
pyproject = true;
@@ -25,7 +25,7 @@ python3Packages.buildPythonApplication rec {
src = fetchFromGitHub {
owner = "smokin-salmon";
repo = "smoked-salmon";
tag = version;
tag = finalAttrs.version;
hash = "sha256-JOwqu/Hu7BjYLo3DdL6o+9TI/OQvlgj5Xu8WQ0cujwo=";
};
@@ -74,7 +74,7 @@ python3Packages.buildPythonApplication rec {
"--suffix"
"PATH"
":"
(lib.makeBinPath runtimeDeps)
(lib.makeBinPath finalAttrs.passthru.runtimeDeps)
];
passthru = {
@@ -91,4 +91,4 @@ python3Packages.buildPythonApplication rec {
undefined-landmark
];
};
}
})
+9 -5
View File
@@ -16,7 +16,7 @@ let
oxipng
];
in
python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "upsies";
version = "2026.01.03";
pyproject = true;
@@ -25,7 +25,7 @@ python3Packages.buildPythonApplication rec {
domain = "codeberg.org";
owner = "plotski";
repo = "upsies";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-Ya1v0DR5a4fPsFVJKVSDbgy+hWE136aRV3pFMExlRhU=";
};
@@ -71,7 +71,7 @@ python3Packages.buildPythonApplication rec {
pytestCheckHook
trustme
]
++ runtimeDeps;
++ finalAttrs.passthru.runtimeDeps;
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# Fail during object comparisons on Darwin
@@ -110,11 +110,15 @@ python3Packages.buildPythonApplication rec {
"--suffix"
"PATH"
":"
(lib.makeBinPath runtimeDeps)
(lib.makeBinPath finalAttrs.passthru.runtimeDeps)
];
__darwinAllowLocalNetworking = true;
passthru = {
inherit runtimeDeps;
};
meta = {
description = "Toolkit for collecting, generating, normalizing and sharing video metadata";
homepage = "https://upsies.readthedocs.io/";
@@ -122,4 +126,4 @@ python3Packages.buildPythonApplication rec {
mainProgram = "upsies";
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})