1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, numpy 5, pytestCheckHook 6, setuptools-scm 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "emcee"; 12 version = "3.1.4"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "dfm"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-K2cPSbR7jnl9Vzf2sEiPZqk2vTwgChNWAf6CAerhZCg="; 22 }; 23 24 SETUPTOOLS_SCM_PRETEND_VERSION = version; 25 26 nativeBuildInputs = [ 27 setuptools-scm 28 ]; 29 30 propagatedBuildInputs = [ 31 numpy 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ 39 "emcee" 40 ]; 41 42 meta = with lib; { 43 description = "Kick ass affine-invariant ensemble MCMC sampling"; 44 homepage = "https://emcee.readthedocs.io/"; 45 changelog = "https://github.com/dfm/emcee/releases/tag/v${version}"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ ]; 48 }; 49}