1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 setuptools,
6 unittestCheckHook,
7}:
8buildPythonPackage rec {
9 pname = "giturlparse";
10 version = "0.12.0";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "nephila";
15 repo = "giturlparse";
16 tag = version;
17 hash = "sha256-VqlsqMLwOtaciBWXphmFAMwtfkWBBNaL1Sdcc8Ltq7k=";
18 };
19
20 build-system = [
21 setuptools
22 ];
23 nativeCheckInputs = [
24 unittestCheckHook
25 ];
26
27 pythonImportsCheck = [ "giturlparse" ];
28
29 meta = {
30 description = "Parse & rewrite git urls (supports GitHub, Bitbucket, Assembla ...)";
31 homepage = "https://github.com/nephila/giturlparse";
32 license = lib.licenses.asl20;
33 maintainers = with lib.maintainers; [ yajo ];
34 };
35}