depot/third_party/nixpkgs/pkgs/development/python-modules/dask-histogram/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

49 lines
900 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, boost-histogram
, dask
, hatchling
, hatch-vcs
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "dask-histogram";
version = "2023.6.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "dask-contrib";
repo = "dask-histogram";
rev = "refs/tags/${version}";
hash = "sha256-9b2+vrUH8lZYsEbJg+GmY5zHZ+7PyA9NV2h5VAN0J1s=";
};
nativeBuildInputs = [
hatchling
hatch-vcs
];
propagatedBuildInputs = [
boost-histogram
dask
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"dask_histogram"
];
meta = with lib; {
description = "Histograms with task scheduling";
homepage = "https://dask-histogram.readthedocs.io/";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ veprbl ];
};
}