Files
nixpkgs/pkgs/development/python-modules/giturlparse/default.nix
2026-10-17 10:37:13 +02:00

35 lines
833 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
unittestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "giturlparse";
version = "0.16.0";
pyproject = true;
src = fetchFromGitHub {
owner = "nephila";
repo = "giturlparse";
tag = finalAttrs.version;
hash = "sha256-EzybKpff9u4axubSbFR/knSVYtOoz7Ls9rAjMohWP8k=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "giturlparse" ];
meta = {
description = "Parse & rewrite git urls (supports GitHub, Bitbucket, Assembla ...)";
homepage = "https://github.com/nephila/giturlparse";
changelog = "https://github.com/nephila/giturlparse/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ yajo ];
};
})