gawd: refactor, use finalAttrs pattern, update repo URL

This commit is contained in:
Pol Dellaiera
2026-02-15 10:32:58 +01:00
parent 3eab8602f3
commit ea4730307f

View File

@@ -3,40 +3,38 @@
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
ruamel-yaml,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "gawd";
version = "1.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pooya-rostami";
owner = "sgl-umons";
repo = "gawd";
rev = version;
tag = finalAttrs.version;
hash = "sha256-DCcU7vO5VApRsO+ljVs827TrHIfe3R+1/2wgBEcp1+c=";
};
nativeBuildInputs = [
build-system = [
setuptools
wheel
];
propagatedBuildInputs = [ ruamel-yaml ];
dependencies = [ ruamel-yaml ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "gawd" ];
meta = {
changelog = "https://github.com/pooya-rostami/gawd/releases/tag/${version}";
changelog = "https://github.com/sgl-umons/gawd/releases/tag/${finalAttrs.version}";
description = "Python library and command-line tool for computing syntactic differences between two GitHub Actions workflow files";
mainProgram = "gawd";
homepage = "https://github.com/pooya-rostami/gawd";
homepage = "https://github.com/sgl-umons/gawd";
license = lib.licenses.lgpl3Only;
maintainers = [ ];
maintainers = with lib.maintainers; [ drupol ];
};
}
})