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