nixpkgs/pkgs/tools/misc/crudini/default.nix

29 lines
695 B
Nix
Raw Normal View History

2017-03-14 08:45:05 +00:00
{ stdenv, fetchFromGitHub, python2Packages }:
python2Packages.buildPythonApplication rec {
name = "crudini-${version}";
version = "0.9";
src = fetchFromGitHub {
owner = "pixelb";
repo = "crudini";
rev = version;
sha256 = "0x9z9lsygripj88gadag398pc9zky23m16wmh8vbgw7ld1nhkiav";
};
propagatedBuildInputs = with python2Packages; [ iniparse ];
2017-03-14 10:44:00 +00:00
checkPhase = ''
patchShebangs .
pushd tests >/dev/null
./test.sh
'';
2017-03-14 08:45:05 +00:00
meta = with stdenv.lib; {
description = "A utility for manipulating ini files ";
homepage = http://www.pixelbeat.org/programs/crudini/;
license = licenses.gpl2;
2017-03-14 10:44:00 +00:00
maintainers = with maintainers; [ peterhoeg ];
2017-03-14 08:45:05 +00:00
};
}