python310Packages.pysvn: 1.9.12 -> 1.9.18

Changed files
+27 -13
pkgs
development
+14 -13
pkgs/development/python-modules/pysvn/default.nix
···
buildPythonPackage rec {
pname = "pysvn";
-
version = "1.9.12";
format = "other";
src = fetchurl {
url = "https://pysvn.barrys-emacs.org/source_kits/${pname}-${version}.tar.gz";
-
sha256 = "sRPa4wNyjDmGdF1gTOgLS0pnrdyZwkkH4/9UCdh/R9Q=";
};
buildInputs = [ bash subversion apr aprutil expat neon openssl ]
++ lib.optionals stdenv.isLinux [ e2fsprogs ]
++ lib.optionals stdenv.isDarwin [ gcc ];
-
-
postPatch = ''
-
sed -i "117s|append(|insert(0, |" Tests/benchmark_diff.py
-
'';
preConfigure = ''
cd Source
···
--apr-lib-dir=${apr.out}/lib \
--svn-lib-dir=${subversion.out}/lib \
--svn-bin-dir=${subversion.out}/bin
-
'' + (lib.optionalString (stdenv.isDarwin && !isPy3k) ''
-
sed -i -e 's|libpython2.7.dylib|lib/libpython2.7.dylib|' Makefile
-
'');
-
checkInputs = [ glibcLocales ];
checkPhase = ''
runHook preCheck
···
# so it is easier to simply search and replace
sed -i "s|/bin/bash|${bash}/bin/bash|" ../Tests/test-*.sh
make -C ../Tests
-
-
${python.interpreter} -c "import pysvn"
runHook postCheck
'';
installPhase = ''
dest=$(toPythonPath $out)/pysvn
mkdir -p $dest
···
meta = with lib; {
description = "Python bindings for Subversion";
-
homepage = "http://pysvn.tigris.org/";
license = licenses.asl20;
# g++: command not found
broken = stdenv.isDarwin;
};
···
buildPythonPackage rec {
pname = "pysvn";
+
version = "1.9.18";
format = "other";
src = fetchurl {
url = "https://pysvn.barrys-emacs.org/source_kits/${pname}-${version}.tar.gz";
+
hash = "sha256-lUPsNumMYwZoiR1Gt/hqdLLoHOZybRxwvu9+eU1CY78=";
};
+
patches = [
+
./replace-python-first.patch
+
];
+
buildInputs = [ bash subversion apr aprutil expat neon openssl ]
++ lib.optionals stdenv.isLinux [ e2fsprogs ]
++ lib.optionals stdenv.isDarwin [ gcc ];
preConfigure = ''
cd Source
···
--apr-lib-dir=${apr.out}/lib \
--svn-lib-dir=${subversion.out}/lib \
--svn-bin-dir=${subversion.out}/bin
+
'';
+
+
checkInputs = [ glibcLocales ];
checkPhase = ''
runHook preCheck
···
# so it is easier to simply search and replace
sed -i "s|/bin/bash|${bash}/bin/bash|" ../Tests/test-*.sh
make -C ../Tests
runHook postCheck
'';
+
# FIXME https://github.com/NixOS/nixpkgs/issues/175227
+
# pythonImportsCheck = [ "pysvn" ];
+
installPhase = ''
dest=$(toPythonPath $out)/pysvn
mkdir -p $dest
···
meta = with lib; {
description = "Python bindings for Subversion";
+
homepage = "https://pysvn.sourceforge.io/";
license = licenses.asl20;
+
maintainers = with maintainers; [ dotlambda ];
# g++: command not found
broken = stdenv.isDarwin;
};
+13
pkgs/development/python-modules/pysvn/replace-python-first.patch
···
···
+
Index: Extension/Tests/benchmark_diff.py
+
===================================================================
+
--- Extension/Tests/benchmark_diff.py (revision 2093)
+
+++ Extension/Tests/benchmark_diff.py (working copy)
+
@@ -115,7 +115,7 @@
+
+
if self.python:
+
python_re = LiteralCaseBlindSearch( self.python )
+
- self.replacement_list.append(
+
+ self.replacement_list.insert(0,
+
(python_re, '<PYTHON>') )
+
+
if self.svn_bin: