1{ lib
2, buildPythonPackage
3, fetchpatch
4, fetchPypi
5, setuptools
6, setuptools-scm
7, wheel
8, numpy
9, tqdm
10, pytestCheckHook
11}:
12
13buildPythonPackage rec {
14 pname = "tiler";
15 version = "0.5.7";
16 format = "pyproject";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-2HWO/iJ9RCWNVmw2slu9F/+Mchk3evB5/F8EfbuMI/Y=";
21 };
22
23 patches = [
24 # https://github.com/the-lay/tiler/pull/24
25 (fetchpatch {
26 name = "unpin-setuptools-scm-dependency.patch";
27 url = "https://github.com/the-lay/tiler/commit/7a9f7e32c5f9c263c1ae28bfd19c7539556684cb.patch";
28 hash = "sha256-TMr3LJtiKUxJv2pAzAd8CWs3AtWsF0YS79NzKBN5TKM=";
29 })
30 ];
31
32 nativeBuildInputs = [
33 setuptools
34 setuptools-scm
35 wheel
36 ];
37
38 propagatedBuildInputs = [
39 numpy
40 tqdm
41 ];
42
43 nativeCheckInputs = [
44 pytestCheckHook
45 ];
46
47 pythonImportsCheck = [ "tiler" ];
48
49 meta = with lib; {
50 description = "N-dimensional NumPy array tiling and merging with overlapping, padding and tapering";
51 homepage = "https://the-lay.github.io/tiler/";
52 license = licenses.mit;
53 maintainers = with maintainers; [ atila ];
54 };
55}