Added readme

This commit is contained in:
didier committed 2024-10-15 19:32:54 -04:00
1 parent 7079a64134
commit 2144e76dac
2 files changed
+72 -53

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
# Python OpenCV Related Nix Flakes
Collection of python library packaged in nix flakes to work with OpenCV
and other computer vision related libraries.
### Licenses
The current work is only about re-distributing open source library. I have
tried to attach the proper license to the proper library. For any
licenses questions, or anything at all about the library, please give
all credits to packages author.
+60 -53
View File
@@ -23,18 +23,18 @@
fetchSubmodules = true; fetchSubmodules = true;
}; };
propagatedBuildInputs = [ pythonPackages.numpy ]; propagatedBuildInputs = with pythonPackages; [ numpy ];
nativeBuildInputs = [ nativeBuildInputs = with pythonPackages; [
pythonPackages.setuptools setuptools
pythonPackages.setuptools-scm setuptools-scm
pythonPackages.cython cython
]; ];
meta = with pkgs.lib; { meta = with pkgs.lib; {
description = "Linear Assignment Problem solver (LAPJV/LAPMOD)."; description = "Linear Assignment Problem solver (LAPJV/LAPMOD).";
homepage = "https://github.com/rathaROG/lapx"; homepage = "https://github.com/rathaROG/lapx";
license = pkgs.lib.licenses.mit; license = pkgs.lib.licenses.bsd2;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
}; };
}; };
@@ -51,10 +51,12 @@
fetchSubmodules = true; fetchSubmodules = true;
}; };
propagatedBuildInputs = [ pythonPackages.numpy pythonPackages.torch ]; propagatedBuildInputs = with pythonPackages; [ numpy torch ];
nativeBuildInputs = nativeBuildInputs = with pythonPackages; [
[ pythonPackages.setuptools pythonPackages.setuptools-scm ]; setuptools
setuptools-scm
];
meta = with pkgs.lib; { meta = with pkgs.lib; {
description = '' description = ''
@@ -64,7 +66,7 @@
efficiency and memory footprint of deep learning models. efficiency and memory footprint of deep learning models.
''; '';
homepage = "https://github.com/ultralytics/thop"; homepage = "https://github.com/ultralytics/thop";
license = pkgs.lib.licenses.mit; license = pkgs.lib.licenses.agpl3Only;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
}; };
}; };
@@ -82,18 +84,18 @@
}; };
# doCheck = false; # doCheck = false;
propagatedBuildInputs = [ propagatedBuildInputs = with pythonPackages; [
pythonPackages.requests requests
pythonPackages.pyyaml pyyaml
pythonPackages.torch torch
pythonPackages.tqdm tqdm
pythonPackages.psutil psutil
pythonPackages.torchvision torchvision
pythonPackages.pandas pandas
pythonPackages.matplotlib matplotlib
pythonPackages.seaborn seaborn
pythonPackages.py-cpuinfo py-cpuinfo
pythonPackages.opencv4 opencv4
ultralytics-thop ultralytics-thop
]; ];
@@ -101,10 +103,10 @@
pythonRelaxDeps = [ "torchvision" ]; pythonRelaxDeps = [ "torchvision" ];
pythonRemoveDeps = [ "opencv-python" ]; pythonRemoveDeps = [ "opencv-python" ];
nativeBuildInputs = [ nativeBuildInputs = with pythonPackages; [
pythonPackages.setuptools setuptools
pythonPackages.setuptools-scm setuptools-scm
pythonPackages.pip pip
]; ];
# nativeCheckInputs = [ ]; # nativeCheckInputs = [ ];
@@ -116,7 +118,7 @@
pose estimation and image classification. pose estimation and image classification.
''; '';
homepage = "https://github.com/ultralytics/ultralytics"; homepage = "https://github.com/ultralytics/ultralytics";
license = pkgs.lib.licenses.mit; license = pkgs.lib.licenses.agpl3Only;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
}; };
}; };
@@ -134,49 +136,54 @@
fetchSubmodules = true; fetchSubmodules = true;
}; };
propagatedBuildInputs = [ propagatedBuildInputs = with pythonPackages; [
pythonPackages.loguru loguru
pythonPackages.numpy numpy
pythonPackages.pandas pandas
pythonPackages.pyyaml pyyaml
pythonPackages.torch torch
pythonPackages.yacs yacs
pythonPackages.torchvision torchvision
pythonPackages.ftfy ftfy
pythonPackages.filterpy filterpy
pythonPackages.gdown gdown
pythonPackages.regex regex
pythonPackages.scikit-learn scikit-learn
pythonPackages.gitpython gitpython
pythonPackages.opencv4 opencv4
pythonPackages.pip pip
lapx lapx
]; ];
pythonRelaxDeps = [ "torchvision" ]; pythonRelaxDeps = [ "torchvision" ];
pythonRemoveDeps = [ "opencv-python" ]; pythonRemoveDeps = [ "opencv-python" ];
nativeBuildInputs = [ nativeBuildInputs = with pythonPackages; [
pythonPackages.setuptools setuptools
pythonPackages.setuptools-scm setuptools-scm
pythonPackages.poetry-core poetry-core
]; ];
meta = with pkgs.lib; { meta = with pkgs.lib; {
description = "Linear Assignment Problem solver (LAPJV/LAPMOD)."; description = "Linear Assignment Problem solver (LAPJV/LAPMOD).";
homepage = "https://github.com/mikel-brostrom/boxmot"; homepage = "https://github.com/mikel-brostrom/boxmot";
license = pkgs.lib.licenses.mit; license = pkgs.lib.licenses.agpl3Only;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
}; };
}; };
env = pkgs.python312.withPackages (ps: [ boxmot ]);
in { in {
packages = { packages = {
default = pkgs.python312Packages.path; python312Packages.lapx = lapx;
env = env; python312Packages.ultralytics-thop = ultralytics-thop;
python312Packages.ultralytics = ultralytics;
python312Packages.boxmot = boxmot;
python312Packages.opencv4 = pythonPackages.opencv4;
};
devShells.default = pkgs.mkShell {
buildInputs =
[ (pkgs.python312.withPackages (ps: [ boxmot ultralytics ])) ];
}; };
devShells.default = pkgs.mkShell { buildInputs = [ env ]; };
}); });
} }