2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-26 11:04:55 +00:00
|
|
|
|
|
|
|
# build-system
|
2024-06-05 15:53:02 +00:00
|
|
|
hatchling,
|
|
|
|
hatch-vcs,
|
2024-09-26 11:04:55 +00:00
|
|
|
|
|
|
|
# dependencies
|
|
|
|
boost-histogram,
|
|
|
|
dask,
|
|
|
|
|
|
|
|
# tests
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-histogram";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "2024.9.1";
|
2024-02-07 01:22:34 +00:00
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask-contrib";
|
|
|
|
repo = "dask-histogram";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-k+hD5y9K6Jsm++H+IAWJ/Z3wlCN4fV8RIcyAnvOvem0=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
build-system = [
|
2023-07-15 17:15:38 +00:00
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
dependencies = [
|
2023-07-15 17:15:38 +00:00
|
|
|
boost-histogram
|
|
|
|
dask
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dask_histogram" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
meta = {
|
2023-07-15 17:15:38 +00:00
|
|
|
description = "Histograms with task scheduling";
|
|
|
|
homepage = "https://dask-histogram.readthedocs.io/";
|
2024-02-07 01:22:34 +00:00
|
|
|
changelog = "https://github.com/dask-contrib/dask-histogram/releases/tag/${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
license = with lib.licenses; [ bsd3 ];
|
|
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|