depot/third_party/nixpkgs/pkgs/development/python-modules/pymatting/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

55 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, numba
, numpy
, pillow
, scipy
, pytestCheckHook
,
}:
buildPythonPackage rec {
pname = "pymatting";
version = "1.1.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "pymatting";
repo = "pymatting";
rev = "v${version}";
hash = "sha256-9eRpsWwXAkp6aw1ZWJsUFf0BMIN0UBFc2rW1lltL2cw=";
};
patches = [ ./01-kdtree-signature.patch ];
propagatedBuildInputs = [
numba
numpy
pillow
scipy
];
pythonImportsCheck = [ "pymatting" ];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# no access to input data set
# see: https://github.com/pymatting/pymatting/blob/master/tests/download_images.py
"test_alpha"
"test_laplacians"
"test_preconditioners"
"test_lkm"
];
meta = with lib; {
description = "A Python library for alpha matting";
homepage = "https://github.com/pymatting/pymatting";
changelog = "https://github.com/pymatting/pymatting/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ blaggacao ];
};
}