1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00

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:
aszlig 2017-11-09 07:31:26 +01:00
parent 72450025dd
commit c1d12e1120
No known key found for this signature in database
GPG key ID: 684089CE67EBB691

View file

@ -16043,21 +16043,21 @@ in {
pyinsane2 = buildPythonPackage rec {
name = "pyinsane2-${version}";
version = "2.0.9";
version = "2.0.10";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pyinsane2/${name}.tar.gz";
sha256 = "1g4a1zhrrs7smmnsm7x8j5lvsz0r6rr2jgjykc9c1jlscz3yr747";
sha256 = "00d1wqb3w9bn1rxb2dwmdqbar2lr96izq855l5vzprc17dkgip3j";
};
postPatch = ''
# pyinsane2 forks itself, so we need to re-inject the PYTHONPATH.
sed -i -e '/os.putenv.*PYINSANE_DAEMON/ {
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",' \
src/pyinsane2/sane/rawapi.py
pyinsane2/sane/rawapi.py
'';
# Tests require a scanner to be physically connected, so let's just do a