ocropus: remove
This commit is contained in:
parent
1d199f7eee
commit
20653f46b8
|
@ -1,59 +0,0 @@
|
|||
{ lib, fetchFromGitHub, fetchurl, python2Packages, curl }:
|
||||
|
||||
let
|
||||
getmodel = name: sha256: {
|
||||
inherit name;
|
||||
src = fetchurl {
|
||||
url = "http://www.tmbdev.net/ocropy/${name}";
|
||||
inherit sha256;
|
||||
};
|
||||
};
|
||||
|
||||
models = [
|
||||
(getmodel "en-default.pyrnn.gz"
|
||||
"1xyi3k3p81mfw0491gb1haisazfyi2i18f1wjs1m34ak39qfqjdp")
|
||||
(getmodel "fraktur.pyrnn.gz"
|
||||
"1wlwvxn91ilgmlri1hj81arl3mbzxc24ycdnkf5icq4hdi4c6y8b")
|
||||
];
|
||||
|
||||
in
|
||||
python2Packages.buildPythonApplication rec {
|
||||
pname = "ocropus";
|
||||
version = "1.3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
sha256 = "02p1334mic5cfhvpfphfrbim4036yfd8s2zzpwm0xmm829z71nr7";
|
||||
rev = "v${version}";
|
||||
repo = "ocropy";
|
||||
owner = "tmbdev";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python2Packages; [ curl numpy scipy pillow
|
||||
matplotlib beautifulsoup4 pygtk lxml ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preConfigure = with lib; ''
|
||||
${concatStrings (map (x: "cp -R ${x.src} models/`basename ${x.name}`;")
|
||||
models)}
|
||||
|
||||
substituteInPlace ocrolib/common.py --replace /usr/local $out
|
||||
substituteInPlace ocrolib/default.py --replace /usr/local $out
|
||||
'';
|
||||
|
||||
doCheck = false; # fails
|
||||
checkPhase = ''
|
||||
patchShebangs .
|
||||
substituteInPlace ./run-test \
|
||||
--replace 'ocropus-rpred' 'ocropus-rpred -Q $NIX_BUILD_CORES'
|
||||
PATH=".:$PATH" ./run-test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Open source document analysis and OCR system";
|
||||
license = licenses.asl20;
|
||||
homepage = "https://github.com/tmbdev/ocropy/";
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -896,6 +896,7 @@ mapAliases ({
|
|||
OVMF-CSM = throw "OVMF-CSM has been removed in favor of OVMFFull"; # Added 2021-10-16
|
||||
OVMF-secureBoot = throw "OVMF-secureBoot has been removed in favor of OVMFFull"; # Added 2021-10-16
|
||||
oauth2_proxy = oauth2-proxy; # Added 2021-04-18
|
||||
ocropus = throw "ocropus has been removed: abandoned by upstream"; # Added 2022-04-24
|
||||
octoprint-plugins = throw "octoprint-plugins are now part of the octoprint.python.pkgs package set"; # Added 2021-01-24
|
||||
ocz-ssd-guru = throw "ocz-ssd-guru has been removed due to there being no source available"; # Added 2021-07-12
|
||||
odpdown = throw "odpdown has been removed because it lacks python3 support"; # Added 2022-04-25
|
||||
|
|
|
@ -14334,8 +14334,6 @@ with pkgs;
|
|||
|
||||
octavePackages = recurseIntoAttrs octave.pkgs;
|
||||
|
||||
ocropus = callPackage ../applications/misc/ocropus { };
|
||||
|
||||
pachyderm = callPackage ../applications/networking/cluster/pachyderm { };
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue