tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.git-url-parse: init at 1.2.2
David Arnold
2 years ago
e2503544
ef25e7a3
+50
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
git-url-parse
default.nix
top-level
python-packages.nix
+48
pkgs/development/python-modules/git-url-parse/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, pbr
5
5
+
, pytestCheckHook
6
6
+
}:
7
7
+
8
8
+
buildPythonPackage rec {
9
9
+
pname = "git-url-parse";
10
10
+
version = "1.2.2";
11
11
+
format = "setuptools";
12
12
+
13
13
+
src = fetchFromGitHub {
14
14
+
owner = "coala";
15
15
+
repo = "git-url-parse";
16
16
+
rev = version;
17
17
+
hash = "sha256-+0V/C3wE02ppdDGn7iqdvmgsUwTR7THUakUilvkzoYg=";
18
18
+
};
19
19
+
20
20
+
postPatch = ''
21
21
+
substituteInPlace pytest.ini \
22
22
+
--replace " --cov giturlparse --cov-report term-missing" ""
23
23
+
'';
24
24
+
25
25
+
26
26
+
# Manually set version because prb wants to get it from the git
27
27
+
# upstream repository (and we are installing from tarball instead)
28
28
+
env.PBR_VERSION = version;
29
29
+
30
30
+
propagatedBuildInputs = [
31
31
+
pbr
32
32
+
];
33
33
+
34
34
+
pythonImportsCheck = [ "giturlparse" ];
35
35
+
36
36
+
nativeCheckInputs = [
37
37
+
pytestCheckHook
38
38
+
];
39
39
+
40
40
+
meta = with lib; {
41
41
+
description = "A simple GIT URL parser";
42
42
+
homepage = "https://github.com/coala/git-url-parse";
43
43
+
changelog = "https://github.com/coala/git-url-parse/blob/${src.rev}/CHANGELOG.rst";
44
44
+
license = licenses.mit;
45
45
+
maintainers = with maintainers; [ blaggacao ];
46
46
+
};
47
47
+
}
48
48
+
+2
pkgs/top-level/python-packages.nix
···
4203
4203
4204
4204
git-sweep = callPackage ../development/python-modules/git-sweep { };
4205
4205
4206
4206
+
git-url-parse = callPackage ../development/python-modules/git-url-parse { };
4207
4207
+
4206
4208
gitdb = callPackage ../development/python-modules/gitdb { };
4207
4209
4208
4210
github-to-sqlite = callPackage ../development/python-modules/github-to-sqlite { };