mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 13:06:32 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
38 lines
745 B
Nix
38 lines
745 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
opencv4,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.5.4";
|
|
format = "setuptools";
|
|
pname = "imutils";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "03827a9fca8b5c540305c0844a62591cf35a0caec199cb0f2f0a4a0fb15d8f24";
|
|
};
|
|
|
|
propagatedBuildInputs = [ opencv4 ];
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"imutils"
|
|
"imutils.video"
|
|
"imutils.io"
|
|
"imutils.feature"
|
|
"imutils.face_utils"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/jrosebr1/imutils";
|
|
description = "Series of convenience functions to make basic image processing functions";
|
|
mainProgram = "range-detector";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|