mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
csv2svn: 2.4.0 -> 2.5.0 (#47635)
use buildPythonApplication instead of manual setup.py call
This commit is contained in:
parent
b810cdc090
commit
3790cf7345
@ -1,29 +1,33 @@
|
|||||||
{stdenv, lib, fetchurl, python2, cvs, makeWrapper}:
|
{ lib, fetchurl, makeWrapper
|
||||||
|
, python2Packages
|
||||||
|
, cvs, subversion, git, bazaar
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
python2Packages.buildPythonApplication rec {
|
||||||
name = "cvs2svn-2.4.0";
|
name = "cvs2svn-${version}";
|
||||||
|
version = "2.5.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://cvs2svn.tigris.org/files/documents/1462/49237/${name}.tar.gz";
|
url = "http://cvs2svn.tigris.org/files/documents/1462/49543/${name}.tar.gz";
|
||||||
sha256 = "05piyrcp81a1jgjm66xhq7h1sscx42ccjqaw30h40dxlwz1pyrx6";
|
sha256 = "1ska0z15sjhyfi860rjazz9ya1gxbf5c0h8dfqwz88h7fccd22b4";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [python2 makeWrapper];
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
dontBuild = true;
|
checkInputs = [ subversion git bazaar ];
|
||||||
installPhase = ''
|
|
||||||
python ./setup.py install --prefix=$out
|
checkPhase = "python run-tests.py";
|
||||||
|
|
||||||
|
doCheck = false; # Couldn't find node 'transaction...' in expected output tree
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
for i in bzr svn git; do
|
for i in bzr svn git; do
|
||||||
wrapProgram $out/bin/cvs2$i \
|
wrapProgram $out/bin/cvs2$i \
|
||||||
--prefix PATH : "${lib.makeBinPath [ cvs ]}" \
|
--prefix PATH : "${lib.makeBinPath [ cvs ]}"
|
||||||
--set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
|
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
/* !!! maybe we should absolutise the program names in
|
meta = with lib; {
|
||||||
$out/lib/python2.4/site-packages/cvs2svn_lib/config.py. */
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "A tool to convert CVS repositories to Subversion repositories";
|
description = "A tool to convert CVS repositories to Subversion repositories";
|
||||||
homepage = http://cvs2svn.tigris.org/;
|
homepage = http://cvs2svn.tigris.org/;
|
||||||
maintainers = [ maintainers.makefu ];
|
maintainers = [ maintainers.makefu ];
|
||||||
|
Loading…
Reference in New Issue
Block a user