From 93d720f0313b5ebea13747dea450315edc35019c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 2 Oct 2024 16:02:19 +0200 Subject: [PATCH] python312Packages.compressai: 1.2.4 -> 1.2.6 Diff: https://github.com/InterDigitalInc/CompressAI/compare/refs/tags/v1.2.4...v1.2.6 --- .../python-modules/compressai/default.nix | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/compressai/default.nix b/pkgs/development/python-modules/compressai/default.nix index 517a33d8aa66..66fa915ebef6 100644 --- a/pkgs/development/python-modules/compressai/default.nix +++ b/pkgs/development/python-modules/compressai/default.nix @@ -1,50 +1,59 @@ { lib, buildPythonPackage, - pythonOlder, fetchFromGitHub, + + # build-system pybind11, setuptools, - wheel, + + # dependencies + einops, numpy, matplotlib, + pandas, pytorch-msssim, scipy, torch, + torch-geometric, torchvision, + + # optional-dependencies ipywidgets, jupyter, + + # tests plotly, pytestCheckHook, }: buildPythonPackage rec { pname = "compressai"; - version = "1.2.4"; + version = "1.2.6"; pyproject = true; - disabled = pythonOlder "3.6"; - src = fetchFromGitHub { owner = "InterDigitalInc"; repo = "CompressAI"; rev = "refs/tags/v${version}"; - hash = "sha256-nT2vd7t67agIWobJalORbRuns0UJGRGGbTX2/8vbTiY="; + hash = "sha256-xvzhhLn0iBzq3h1nro8/83QWEQe9K4zRa3RSZk+hy3Y="; fetchSubmodules = true; }; - nativeBuildInputs = [ + build-system = [ pybind11 setuptools - wheel ]; - propagatedBuildInputs = [ + dependencies = [ + einops numpy matplotlib + pandas pytorch-msssim scipy torch + torch-geometric torchvision ]; @@ -81,10 +90,10 @@ buildPythonPackage rec { "test_pretrained" ]; - meta = with lib; { + meta = { description = "PyTorch library and evaluation platform for end-to-end compression research"; homepage = "https://github.com/InterDigitalInc/CompressAI"; - license = licenses.bsd3Clear; - maintainers = with maintainers; [ GaetanLepage ]; + license = lib.licenses.bsd3Clear; + maintainers = with lib.maintainers; [ GaetanLepage ]; }; }