1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hypothesis, 6 numpy, 7 pytest-cov-stub, 8 pytestCheckHook, 9 python, 10 pythonOlder, 11 setuptools-scm, 12 setuptools, 13}: 14 15buildPythonPackage rec { 16 pname = "fast-histogram"; 17 version = "0.14"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.9"; 21 22 src = fetchFromGitHub { 23 owner = "astrofrog"; 24 repo = "fast-histogram"; 25 tag = "v${version}"; 26 hash = "sha256-vIzDDzz6e7PXArHdZdSSgShuTjy3niVdGtXqgmyJl1w="; 27 }; 28 29 build-system = [ 30 setuptools 31 setuptools-scm 32 ]; 33 34 dependencies = [ numpy ]; 35 36 nativeCheckInputs = [ 37 hypothesis 38 pytest-cov-stub 39 pytestCheckHook 40 ]; 41 42 enabledTestPaths = [ "${builtins.placeholder "out"}/${python.sitePackages}" ]; 43 44 pythonImportsCheck = [ "fast_histogram" ]; 45 46 disabledTests = [ 47 # ValueError 48 "test_1d_compare_with_numpy" 49 ]; 50 51 meta = with lib; { 52 description = "Fast 1D and 2D histogram functions in Python"; 53 homepage = "https://github.com/astrofrog/fast-histogram"; 54 changelog = "https://github.com/astrofrog/fast-histogram/blob/v${version}/CHANGES.md"; 55 license = licenses.bsd2; 56 maintainers = with maintainers; [ ifurther ]; 57 }; 58}