mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-09 23:03:47 +00:00
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hypothesis,
|
|
numpy,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
python,
|
|
setuptools-scm,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "fast-histogram";
|
|
version = "0.14";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "astrofrog";
|
|
repo = "fast-histogram";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-vIzDDzz6e7PXArHdZdSSgShuTjy3niVdGtXqgmyJl1w=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [ numpy ];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
enabledTestPaths = [ "${placeholder "out"}/${python.sitePackages}" ];
|
|
|
|
pythonImportsCheck = [ "fast_histogram" ];
|
|
|
|
disabledTests = [
|
|
# ValueError
|
|
"test_1d_compare_with_numpy"
|
|
];
|
|
|
|
meta = {
|
|
description = "Fast 1D and 2D histogram functions in Python";
|
|
homepage = "https://github.com/astrofrog/fast-histogram";
|
|
changelog = "https://github.com/astrofrog/fast-histogram/blob/v${finalAttrs.version}/CHANGES.md";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ ifurther ];
|
|
};
|
|
})
|