From 4ebd3d12445c6a62c471678dc816a81ec50f5393 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 12 May 2026 11:23:45 +0000 Subject: [PATCH] python3Packages.cutlass: init at 0.4.0 --- .../python-modules/cutlass/default.nix | 59 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 61 insertions(+) create mode 100644 pkgs/development/python-modules/cutlass/default.nix diff --git a/pkgs/development/python-modules/cutlass/default.nix b/pkgs/development/python-modules/cutlass/default.nix new file mode 100644 index 000000000000..aaa22047148f --- /dev/null +++ b/pkgs/development/python-modules/cutlass/default.nix @@ -0,0 +1,59 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + + # build-system + setuptools, + + # dependencies + numpy, + pandas, + + # optional-dependencies + matplotlib, + + # tests + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "cutlass"; + version = "0.4.0"; + pyproject = true; + __structuredAttrs = true; + + # No tags on GitHub + src = fetchPypi { + inherit (finalAttrs) pname version; + hash = "sha256-+9Y7twguzeqGJP9813hAStzjLVlTeLD+JHrHndzA9AM="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + numpy + pandas + ]; + + optional-dependencies = { + plots = [ + matplotlib + ]; + }; + + pythonImportsCheck = [ "cutlass" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + description = "Rectified L1 logistic regression with CUTLASS critical range encoding"; + homepage = "https://github.com/jworender/cutlass"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ GaetanLepage ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 40fa449d95c9..93360c36724f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3456,6 +3456,8 @@ self: super: with self; { cutie = callPackage ../development/python-modules/cutie { }; + cutlass = callPackage ../development/python-modules/cutlass { }; + cv2-enumerate-cameras = callPackage ../development/python-modules/cv2-enumerate-cameras { }; cvelib = callPackage ../development/python-modules/cvelib { };