2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pytestCheckHook,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
numpy,
|
|
|
|
wheel,
|
|
|
|
hypothesis,
|
|
|
|
pytest-cov,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fast-histogram";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.14";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "astrofrog";
|
|
|
|
repo = pname;
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-vIzDDzz6e7PXArHdZdSSgShuTjy3niVdGtXqgmyJl1w=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
hypothesis
|
|
|
|
pytest-cov
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "${builtins.placeholder "out"}/${python.sitePackages}" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "fast_histogram" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/astrofrog/fast-histogram";
|
|
|
|
description = "Fast 1D and 2D histogram functions in Python";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ ifurther ];
|
|
|
|
};
|
|
|
|
}
|