python3Packages.git-url-parse: modernize and migrate to pyproject

This commit is contained in:
SandaruKasa
2026-05-23 01:04:16 +03:00
parent cc53fdd4f6
commit d00c6e0940
@@ -4,26 +4,30 @@
fetchFromGitHub,
pbr,
pytestCheckHook,
pytest-cov-stub,
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "git-url-parse";
version = "1.2.2";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "coala";
repo = "git-url-parse";
rev = version;
tag = finalAttrs.version;
hash = "sha256-+0V/C3wE02ppdDGn7iqdvmgsUwTR7THUakUilvkzoYg=";
};
# Manually set version because prb wants to get it from the git
# upstream repository (and we are installing from tarball instead)
env.PBR_VERSION = version;
env.PBR_VERSION = finalAttrs.version;
propagatedBuildInputs = [ pbr ];
build-system = [ setuptools ];
dependencies = [ pbr ];
pythonImportsCheck = [ "giturlparse" ];
@@ -35,8 +39,8 @@ buildPythonPackage rec {
meta = {
description = "Simple GIT URL parser";
homepage = "https://github.com/coala/git-url-parse";
changelog = "https://github.com/coala/git-url-parse/blob/${src.rev}/CHANGELOG.rst";
changelog = "https://github.com/coala/git-url-parse/blob/${finalAttrs.version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
}
})