1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, opencv4
6, pythonOlder
7, pythonRelaxDepsHook
8, scikit-learn
9, typing-extensions
10}:
11
12buildPythonPackage rec {
13 pname = "qudida";
14 version = "0.0.4";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.5";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-2xmOKIerDJqgAj5WWvv/Qd+3azYfhf1eE/eA11uhjMg=";
22 };
23
24 nativeBuildInputs = [
25 pythonRelaxDepsHook
26 ];
27
28 pythonRemoveDeps = [
29 "opencv-python"
30 ];
31
32 propagatedBuildInputs = [
33 numpy
34 opencv4
35 scikit-learn
36 typing-extensions
37 ];
38
39 # upstream has no tests
40 doCheck = false;
41
42 pythonImportsCheck = [ "qudida" ];
43
44 meta = with lib; {
45 description = "QUick and DIrty Domain Adaptation";
46 homepage = "https://github.com/arsenyinfo/qudida";
47 license = licenses.mit;
48 maintainers = with maintainers; [ natsukium ];
49 };
50}