-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeda.nix
39 lines (30 loc) · 877 Bytes
/
deda.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib, python3, glibcLocales, callPackage }:
with python3.pkgs;
buildPythonApplication rec {
pname = "deda";
version = "2.0b1";
src = fetchPypi {
inherit pname version;
sha256 = "1nwf2damz3zvmxz5absfbwd8az4lcl9jlmlybvnjmdh2zxaq5kmq";
};
postPatch = ''
# Remove opencv-python from requirements
sed -i -e 's/opencv-python//g' setup.py
sed -i -e 's/argparse//g' setup.py
# Fix README.md unicode error
export LC_ALL=en_US.utf-8
'';
doCheck = true;
buildInputs = [
glibcLocales
];
propagatedBuildInputs = [
numpy opencv3 ConfigArgParse argparse scipy pillow
];
meta = with lib; {
homepage = https://github.com/dfd-tud/deda;
description = "DEDA - printer tracking Dots Extraction, Decoding and Anonymisation toolkit";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
};
}