pyp: cleanup (#536343)

This commit is contained in:
kirillrdy
2026-06-28 21:16:16 +00:00
committed by GitHub
+39 -44
View File
@@ -10,49 +10,44 @@
versionCheckHook,
}:
let
finalAttrs = {
pname = "pyp";
version = "1.3.0";
python3Packages.buildPythonApplication (finalAttrs: {
pname = "pyp";
version = "1.3.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "hauntsaninja";
repo = "pyp";
tag = "v${finalAttrs.version}";
hash = "sha256-u9yxjYNQrtYtFtUh5tTJ1mGmGB+Ry+FRupli8RzRu3c=";
};
pyproject = true;
build-system = with python3Packages; [
flit-core
];
nativeCheckInputs =
(with python3Packages; [
pytestCheckHook
])
++ [
addBinToPathHook
bc
jq
versionCheckHook
];
pythonImportsCheck = [
"pyp"
];
meta = {
homepage = "https://github.com/hauntsaninja/pyp";
description = "Easily run Python at the shell";
changelog = "https://github.com/hauntsaninja/pyp/blob/${finalAttrs.version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
mainProgram = "pyp";
maintainers = with lib.maintainers; [
rmcgibbo
];
};
src = fetchFromGitHub {
owner = "hauntsaninja";
repo = "pyp";
tag = "v${finalAttrs.version}";
hash = "sha256-u9yxjYNQrtYtFtUh5tTJ1mGmGB+Ry+FRupli8RzRu3c=";
};
in
python3Packages.buildPythonPackage finalAttrs
build-system = with python3Packages; [
flit-core
];
nativeCheckInputs =
(with python3Packages; [
pytestCheckHook
])
++ [
addBinToPathHook
bc
jq
versionCheckHook
];
pythonImportsCheck = [ "pyp" ];
meta = {
homepage = "https://github.com/hauntsaninja/pyp";
description = "Easily run Python at the shell";
changelog = "https://github.com/hauntsaninja/pyp/blob/${finalAttrs.version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
mainProgram = "pyp";
maintainers = with lib.maintainers; [
rmcgibbo
];
};
})