crudini: py2 -> py3

This commit is contained in:
Peter Hoeg 2020-10-02 10:15:22 +08:00
parent 84d74ae9c9
commit f8d8564c34

View file

@ -1,11 +1,6 @@
{ stdenv, fetchFromGitHub, python2Packages, help2man, installShellFiles }:
{ stdenv, fetchFromGitHub, python3Packages, help2man, installShellFiles }:
let
# py3 is supposedly working in version 0.9.3 but the tests fail so stick to py2
pypkgs = python2Packages;
in
pypkgs.buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "crudini";
version = "0.9.3";
@ -18,7 +13,7 @@ pypkgs.buildPythonApplication rec {
nativeBuildInputs = [ help2man installShellFiles ];
propagatedBuildInputs = with pypkgs; [ iniparse ];
propagatedBuildInputs = with python3Packages; [ iniparse ];
postPatch = ''
substituteInPlace crudini-help \
@ -48,7 +43,7 @@ pypkgs.buildPythonApplication rec {
meta = with stdenv.lib; {
description = "A utility for manipulating ini files ";
homepage = "https://www.pixelbeat.org/programs/crudini/";
license = licenses.gpl2;
license = licenses.gpl2Only;
maintainers = with maintainers; [ peterhoeg ];
};
}