crudini: py2 -> py3
This commit is contained in:
parent
84d74ae9c9
commit
f8d8564c34
1 changed files with 7 additions and 12 deletions
|
@ -1,24 +1,19 @@
|
||||||
{ stdenv, fetchFromGitHub, python2Packages, help2man, installShellFiles }:
|
{ stdenv, fetchFromGitHub, python3Packages, help2man, installShellFiles }:
|
||||||
|
|
||||||
let
|
python3Packages.buildPythonApplication rec {
|
||||||
# py3 is supposedly working in version 0.9.3 but the tests fail so stick to py2
|
|
||||||
pypkgs = python2Packages;
|
|
||||||
|
|
||||||
in
|
|
||||||
pypkgs.buildPythonApplication rec {
|
|
||||||
pname = "crudini";
|
pname = "crudini";
|
||||||
version = "0.9.3";
|
version = "0.9.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pixelb";
|
owner = "pixelb";
|
||||||
repo = "crudini";
|
repo = "crudini";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0298hvg0fpk0m0bjpwryj3icksbckwqqsr9w1ain55wf5s0v24k3";
|
sha256 = "0298hvg0fpk0m0bjpwryj3icksbckwqqsr9w1ain55wf5s0v24k3";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ help2man installShellFiles ];
|
nativeBuildInputs = [ help2man installShellFiles ];
|
||||||
|
|
||||||
propagatedBuildInputs = with pypkgs; [ iniparse ];
|
propagatedBuildInputs = with python3Packages; [ iniparse ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace crudini-help \
|
substituteInPlace crudini-help \
|
||||||
|
@ -48,7 +43,7 @@ pypkgs.buildPythonApplication rec {
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A utility for manipulating ini files ";
|
description = "A utility for manipulating ini files ";
|
||||||
homepage = "https://www.pixelbeat.org/programs/crudini/";
|
homepage = "https://www.pixelbeat.org/programs/crudini/";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Only;
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue