1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, boost-histogram
5, dask
6, hatchling
7, hatch-vcs
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "dask-histogram";
13 version = "2023.10.0";
14 format = "pyproject";
15
16 src = fetchFromGitHub {
17 owner = "dask-contrib";
18 repo = "dask-histogram";
19 rev = "refs/tags/${version}";
20 hash = "sha256-ugAqNdvCROCCXURwsGLpnl/lBEAremvTI7MVa/TWt6c=";
21 };
22
23 nativeBuildInputs = [
24 hatchling
25 hatch-vcs
26 ];
27
28 propagatedBuildInputs = [
29 boost-histogram
30 dask
31 ];
32
33 SETUPTOOLS_SCM_PRETEND_VERSION = version;
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "dask_histogram"
41 ];
42
43 meta = with lib; {
44 description = "Histograms with task scheduling";
45 homepage = "https://dask-histogram.readthedocs.io/";
46 license = with licenses; [ bsd3 ];
47 maintainers = with maintainers; [ veprbl ];
48 };
49}