1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 hatchling,
8 hatch-vcs,
9
10 # dependencies
11 boost-histogram,
12 dask,
13
14 # tests
15 pytestCheckHook,
16}:
17
18buildPythonPackage rec {
19 pname = "dask-histogram";
20 version = "2024.9.1";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "dask-contrib";
25 repo = "dask-histogram";
26 rev = "refs/tags/${version}";
27 hash = "sha256-k+hD5y9K6Jsm++H+IAWJ/Z3wlCN4fV8RIcyAnvOvem0=";
28 };
29
30 build-system = [
31 hatchling
32 hatch-vcs
33 ];
34
35 dependencies = [
36 boost-histogram
37 dask
38 ];
39
40 nativeCheckInputs = [ pytestCheckHook ];
41
42 pythonImportsCheck = [ "dask_histogram" ];
43
44 meta = {
45 description = "Histograms with task scheduling";
46 homepage = "https://dask-histogram.readthedocs.io/";
47 changelog = "https://github.com/dask-contrib/dask-histogram/releases/tag/${version}";
48 license = with lib.licenses; [ bsd3 ];
49 maintainers = with lib.maintainers; [ veprbl ];
50 };
51}