Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 55 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ 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 ]; };})