36 lines
729 B
Nix
36 lines
729 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
setuptools,
|
|
unittestCheckHook,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "giturlparse";
|
|
version = "0.12.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nephila";
|
|
repo = "giturlparse";
|
|
tag = version;
|
|
hash = "sha256-VqlsqMLwOtaciBWXphmFAMwtfkWBBNaL1Sdcc8Ltq7k=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
nativeCheckInputs = [
|
|
unittestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "giturlparse" ];
|
|
|
|
meta = {
|
|
description = "Parse & rewrite git urls (supports GitHub, Bitbucket, Assembla ...)";
|
|
homepage = "https://github.com/nephila/giturlparse";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ yajo ];
|
|
};
|
|
}
|