at 23.05-pre 840 B view raw
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.3"; 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-HAuwWFNL63BlvHomQx+hWw4et7kRYd3zhH2FAj632Lg="; 22 }; 23 24 SETUPTOOLS_SCM_PRETEND_VERSION = version; 25 26 nativeBuildInputs = [ 27 setuptools-scm 28 ]; 29 30 propagatedBuildInputs = [ 31 numpy 32 ]; 33 34 checkInputs = [ 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 license = licenses.mit; 46 maintainers = with maintainers; [ ]; 47 }; 48}