Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / dask-histogram / default.nix
blob5bdcb2458e45c090399e68ff550568b907b75d5a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , boost-histogram
5 , dask
6 , hatchling
7 , hatch-vcs
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "dask-histogram";
13   version = "2023.10.0";
14   format = "pyproject";
16   src = fetchFromGitHub {
17     owner = "dask-contrib";
18     repo = "dask-histogram";
19     rev = "refs/tags/${version}";
20     hash = "sha256-ugAqNdvCROCCXURwsGLpnl/lBEAremvTI7MVa/TWt6c=";
21   };
23   nativeBuildInputs = [
24     hatchling
25     hatch-vcs
26   ];
28   propagatedBuildInputs = [
29     boost-histogram
30     dask
31   ];
33   SETUPTOOLS_SCM_PRETEND_VERSION = version;
35   nativeCheckInputs = [
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [
40     "dask_histogram"
41   ];
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   };