7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
51 lines
970 B
Nix
51 lines
970 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
hatch-vcs,
|
|
|
|
# dependencies
|
|
boost-histogram,
|
|
dask,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dask-histogram";
|
|
version = "2024.9.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dask-contrib";
|
|
repo = "dask-histogram";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-k+hD5y9K6Jsm++H+IAWJ/Z3wlCN4fV8RIcyAnvOvem0=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
dependencies = [
|
|
boost-histogram
|
|
dask
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "dask_histogram" ];
|
|
|
|
meta = {
|
|
description = "Histograms with task scheduling";
|
|
homepage = "https://dask-histogram.readthedocs.io/";
|
|
changelog = "https://github.com/dask-contrib/dask-histogram/releases/tag/${version}";
|
|
license = with lib.licenses; [ bsd3 ];
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
|
};
|
|
}
|