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