moinmoin: refactor and fix build
This commit is contained in:
16
pkgs/development/python-modules/moinmoin/fix_tests.patch
Normal file
16
pkgs/development/python-modules/moinmoin/fix_tests.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff -ru3 moin-1.9.9-old/MoinMoin/conftest.py moin-1.9.9-new/MoinMoin/conftest.py
|
||||
--- moin-1.9.9-old/MoinMoin/conftest.py 2016-10-31 23:44:02.000000000 +0300
|
||||
+++ moin-1.9.9-new/MoinMoin/conftest.py 2018-02-18 12:13:19.551929093 +0300
|
||||
@@ -22,10 +22,11 @@
|
||||
|
||||
import atexit
|
||||
import sys
|
||||
+import os
|
||||
|
||||
import py
|
||||
|
||||
-rootdir = py.magic.autopath().dirpath()
|
||||
+rootdir = os.path.abspath(os.path.dirname(__file__))
|
||||
moindir = rootdir.join("..")
|
||||
sys.path.insert(0, str(moindir))
|
||||
|
||||
Reference in New Issue
Block a user