mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 00:22:13 +00:00
3790cf7345
use buildPythonApplication instead of manual setup.py call
38 lines
968 B
Nix
38 lines
968 B
Nix
{ lib, fetchurl, makeWrapper
|
|
, python2Packages
|
|
, cvs, subversion, git, bazaar
|
|
}:
|
|
|
|
python2Packages.buildPythonApplication rec {
|
|
name = "cvs2svn-${version}";
|
|
version = "2.5.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://cvs2svn.tigris.org/files/documents/1462/49543/${name}.tar.gz";
|
|
sha256 = "1ska0z15sjhyfi860rjazz9ya1gxbf5c0h8dfqwz88h7fccd22b4";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
checkInputs = [ subversion git bazaar ];
|
|
|
|
checkPhase = "python run-tests.py";
|
|
|
|
doCheck = false; # Couldn't find node 'transaction...' in expected output tree
|
|
|
|
postInstall = ''
|
|
for i in bzr svn git; do
|
|
wrapProgram $out/bin/cvs2$i \
|
|
--prefix PATH : "${lib.makeBinPath [ cvs ]}"
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A tool to convert CVS repositories to Subversion repositories";
|
|
homepage = http://cvs2svn.tigris.org/;
|
|
maintainers = [ maintainers.makefu ];
|
|
platforms = platforms.unix;
|
|
license = licenses.asl20;
|
|
};
|
|
}
|