tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ansible-cmdb: init at 1.31
Ivan Trubach
2 years ago
909af8cf
39419b6c
+101
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
an
ansible-cmdb
package.nix
setup.patch
+60
pkgs/by-name/an/ansible-cmdb/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
fetchFromGitHub,
4
4
+
substituteAll,
5
5
+
python3Packages,
6
6
+
testers,
7
7
+
ansible-cmdb,
8
8
+
}:
9
9
+
let
10
10
+
inherit (python3Packages)
11
11
+
setuptools
12
12
+
mako
13
13
+
pyyaml
14
14
+
jsonxs
15
15
+
buildPythonApplication
16
16
+
;
17
17
+
18
18
+
pname = "ansible-cmdb";
19
19
+
version = "1.31";
20
20
+
in
21
21
+
buildPythonApplication {
22
22
+
inherit pname version;
23
23
+
24
24
+
pyproject = true;
25
25
+
26
26
+
src = fetchFromGitHub {
27
27
+
owner = "fboender";
28
28
+
repo = "ansible-cmdb";
29
29
+
rev = version;
30
30
+
hash = "sha256-HOFLX8fiid+xJOVYNyVbz5FunrhteAUPlvS3ctclVHo=";
31
31
+
};
32
32
+
33
33
+
patches = [
34
34
+
(substituteAll {
35
35
+
src = ./setup.patch;
36
36
+
inherit version;
37
37
+
})
38
38
+
];
39
39
+
40
40
+
build-system = [ setuptools ];
41
41
+
42
42
+
dependencies = [
43
43
+
mako
44
44
+
pyyaml
45
45
+
jsonxs
46
46
+
];
47
47
+
48
48
+
passthru.tests.version = testers.testVersion {
49
49
+
package = ansible-cmdb;
50
50
+
version = "v${version}";
51
51
+
};
52
52
+
53
53
+
meta = {
54
54
+
description = "Generate host overview from ansible fact gathering output";
55
55
+
homepage = "https://github.com/fboender/ansible-cmdb";
56
56
+
license = lib.licenses.gpl3Only;
57
57
+
maintainers = [ lib.maintainers.tie ];
58
58
+
mainProgram = "ansible-cmdb";
59
59
+
};
60
60
+
}
+41
pkgs/by-name/an/ansible-cmdb/setup.patch
···
1
1
+
diff --git a/src/ansible-cmdb.py b/bin/ansible-cmdb
2
2
+
similarity index 100%
3
3
+
rename from src/ansible-cmdb.py
4
4
+
rename to bin/ansible-cmdb
5
5
+
diff --git a/setup.py b/setup.py
6
6
+
index a8db25d..c1670f1 100755
7
7
+
--- a/setup.py
8
8
+
+++ b/setup.py
9
9
+
@@ -42,17 +42,16 @@ setup(
10
10
+
package_dir={'': 'src'},
11
11
+
packages=find_packages('src'),
12
12
+
include_package_data=True,
13
13
+
- data_files=\
14
14
+
- get_data_files(
15
15
+
- 'src/ansiblecmdb/data',
16
16
+
- strip='src',
17
17
+
- prefix='lib'
18
18
+
- ) +
19
19
+
- [['lib/ansiblecmdb/', ['src/ansible-cmdb.py']]],
20
20
+
+ data_files=get_data_files(
21
21
+
+ 'src/ansiblecmdb/data',
22
22
+
+ strip='src',
23
23
+
+ prefix='lib',
24
24
+
+ ),
25
25
+
zip_safe=False,
26
26
+
- install_requires=['mako', 'pyyaml', 'ushlex', 'jsonxs'],
27
27
+
+ install_requires=['mako', 'pyyaml'],
28
28
+
+ extras_require={'jsonxs_templates': ['jsonxs']},
29
29
+
scripts=[
30
30
+
- 'src/ansible-cmdb',
31
31
+
+ 'bin/ansible-cmdb',
32
32
+
],
33
33
+
34
34
+
classifiers=[
35
35
+
diff --git a/src/ansiblecmdb/data/VERSION b/src/ansiblecmdb/data/VERSION
36
36
+
index 79d94e6..14d2ff6 100644
37
37
+
--- a/src/ansiblecmdb/data/VERSION
38
38
+
+++ b/src/ansiblecmdb/data/VERSION
39
39
+
@@ -1 +1 @@
40
40
+
-MASTER
41
41
+
+@version@