nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 51 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7 numpy, 8 opencv-python, 9 simsimd, 10 stringzilla, 11}: 12 13buildPythonPackage rec { 14 pname = "albucore"; 15 version = "0.0.24"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "albumentations-team"; 20 repo = "albucore"; 21 tag = version; 22 hash = "sha256-frVMPW3au/6vPRY89GIt7chCPkUMl13DpPqCPqIjz/o="; 23 }; 24 25 pythonRelaxDeps = [ "opencv-python" ]; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 numpy 31 opencv-python 32 simsimd 33 stringzilla 34 ]; 35 36 pythonImportsCheck = [ "albucore" ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 # albumentations doesn't support newer versions of albucore 41 # and has been archived upstream in favor of relicensed `albumentationsx` 42 passthru.skipBulkUpdate = true; 43 44 meta = { 45 description = "High-performance image processing library to optimize and extend Albumentations with specialized functions for image transformations"; 46 homepage = "https://github.com/albumentations-team/albucore"; 47 changelog = "https://github.com/albumentations-team/albucore/releases/tag/${version}"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ bcdarwin ]; 50 }; 51}