depot/third_party/nixpkgs/pkgs/development/python-modules/dask-histogram/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

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 ];
};
}