1{ lib 2, buildPythonPackage 3, pytestCheckHook 4, fetchFromGitHub 5, python 6, pythonOlder 7, setuptools 8, setuptools-scm 9, numpy 10, wheel 11, hypothesis 12, pytest-cov 13}: 14 15buildPythonPackage rec { 16 pname = "fast-histogram"; 17 version = "0.12"; 18 19 disabled = pythonOlder "3.6"; 20 21 src = fetchFromGitHub { 22 owner = "astrofrog"; 23 repo = pname; 24 rev = "v${version}"; 25 sha256 = "sha256-Cz4BgbtxbUPxL2NSzvZYjbYIN4KUuliUV0bXRRtyvfM="; 26 }; 27 28 nativeBuildInputs = [ 29 setuptools 30 setuptools-scm 31 wheel 32 ]; 33 34 propagatedBuildInputs = [ numpy ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 hypothesis 39 pytest-cov 40 ]; 41 42 pytestFlagsArray = [ "${builtins.placeholder "out"}/${python.sitePackages}" ]; 43 44 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 45 46 pythonImportsCheck = [ "fast_histogram" ]; 47 48 meta = with lib; { 49 homepage = "https://github.com/astrofrog/fast-histogram"; 50 description = "Fast 1D and 2D histogram functions in Python"; 51 license = licenses.bsd2; 52 maintainers = with maintainers; [ ifurther ]; 53 }; 54}