python/pyinsane2: 2.0.9 -> 2.0.10
Upstream changes:
* Now works with 'setup.py develop' (thanks to Matthieu Coudron)
* WIA: Some drivers (Lexmark for instance) returns
WIA_ERROR_PAPER_EMPTY when calling transfer->Download() instead of
returning a shorted image (like HP)
* MacOSX + Sane: disable dedicated process workaround (doesn't work)
* WIA: Minor optimisation (Use collections.deque() instead of
list.pop())
* Sane/exit(): Exit gracefully
Full changelog can be found at:
https://github.com/openpaperwork/pyinsane/blob/2.0.10/ChangeLog
Tested by building and running a few scans.
Signed-off-by: aszlig <aszlig@nix.build>
This commit is contained in:
@@ -16043,21 +16043,21 @@ in {
|
|||||||
|
|
||||||
pyinsane2 = buildPythonPackage rec {
|
pyinsane2 = buildPythonPackage rec {
|
||||||
name = "pyinsane2-${version}";
|
name = "pyinsane2-${version}";
|
||||||
version = "2.0.9";
|
version = "2.0.10";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
url = "mirror://pypi/p/pyinsane2/${name}.tar.gz";
|
url = "mirror://pypi/p/pyinsane2/${name}.tar.gz";
|
||||||
sha256 = "1g4a1zhrrs7smmnsm7x8j5lvsz0r6rr2jgjykc9c1jlscz3yr747";
|
sha256 = "00d1wqb3w9bn1rxb2dwmdqbar2lr96izq855l5vzprc17dkgip3j";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# pyinsane2 forks itself, so we need to re-inject the PYTHONPATH.
|
# pyinsane2 forks itself, so we need to re-inject the PYTHONPATH.
|
||||||
sed -i -e '/os.putenv.*PYINSANE_DAEMON/ {
|
sed -i -e '/os.putenv.*PYINSANE_DAEMON/ {
|
||||||
a \ os.putenv("PYTHONPATH", ":".join(sys.path))
|
a \ os.putenv("PYTHONPATH", ":".join(sys.path))
|
||||||
}' src/pyinsane2/sane/abstract_proc.py
|
}' pyinsane2/sane/abstract_proc.py
|
||||||
|
|
||||||
sed -i -e 's,"libsane.so.1","${pkgs.sane-backends}/lib/libsane.so",' \
|
sed -i -e 's,"libsane.so.1","${pkgs.sane-backends}/lib/libsane.so",' \
|
||||||
src/pyinsane2/sane/rawapi.py
|
pyinsane2/sane/rawapi.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Tests require a scanner to be physically connected, so let's just do a
|
# Tests require a scanner to be physically connected, so let's just do a
|
||||||
|
|||||||
Reference in New Issue
Block a user