blob: d42b2ce0ec8e11d361dea5d18b5d9406302e9532 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
lib,
fetchFromGitHub,
python3Packages,
help2man,
installShellFiles,
}:
python3Packages.buildPythonApplication rec {
pname = "crudini";
version = "0.9.6";
format = "pyproject";
src = fetchFromGitHub {
owner = "pixelb";
repo = "crudini";
tag = version;
hash = "sha256-XW9pdP+aie6v9h35gLYM0wVrcsh+dcEB7EueATOV4w4=";
};
postPatch = ''
patchShebangs crudini.py crudini-help tests/test.sh
'';
nativeBuildInputs = [
help2man
installShellFiles
python3Packages.setuptools
python3Packages.setuptools-scm
python3Packages.wheel
];
propagatedBuildInputs = with python3Packages; [ iniparse ];
postInstall = ''
# this just creates the man page
make all
install -Dm444 -t $out/share/doc/${pname} README.md EXAMPLES
installManPage *.1
'';
checkPhase = ''
runHook preCheck
pushd tests >/dev/null
./test.sh
popd >/dev/null
runHook postCheck
'';
meta = with lib; {
description = "Utility for manipulating ini files";
homepage = "https://www.pixelbeat.org/programs/crudini/";
license = licenses.gpl2Only;
maintainers = with maintainers; [ peterhoeg ];
mainProgram = "crudini";
};
}
|