21 # optional-dependencies
30 buildPythonPackage rec {
35 src = fetchFromGitHub {
36 owner = "InterDigitalInc";
38 rev = "refs/tags/v${version}";
39 hash = "sha256-xvzhhLn0iBzq3h1nro8/83QWEQe9K4zRa3RSZk+hy3Y=";
40 fetchSubmodules = true;
60 optional-dependencies = {
67 pythonImportsCheck = [
73 # We have to delete the source because otherwise it is used intead the installed package.
76 export HOME=$(mktemp -d)
85 # Those tests require internet access to download some weights
88 "test_eval_model_pretrained"
89 "test_cheng2020_anchor"
94 description = "PyTorch library and evaluation platform for end-to-end compression research";
95 homepage = "https://github.com/InterDigitalInc/CompressAI";
96 license = lib.licenses.bsd3Clear;
97 maintainers = with lib.maintainers; [ GaetanLepage ];