depot/third_party/nixpkgs/pkgs/development/python-modules/qudida/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

50 lines
875 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, opencv4
, pythonOlder
, pythonRelaxDepsHook
, scikit-learn
, typing-extensions
}:
buildPythonPackage rec {
pname = "qudida";
version = "0.0.4";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-2xmOKIerDJqgAj5WWvv/Qd+3azYfhf1eE/eA11uhjMg=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRemoveDeps = [
"opencv-python"
];
propagatedBuildInputs = [
numpy
opencv4
scikit-learn
typing-extensions
];
# upstream has no tests
doCheck = false;
pythonImportsCheck = [ "qudida" ];
meta = with lib; {
description = "QUick and DIrty Domain Adaptation";
homepage = "https://github.com/arsenyinfo/qudida";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
};
}