python310Packages.emcee: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-09-28 01:58:03 +02:00 committed by GitHub
parent 89a429baa6
commit b3ce1549c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,17 +4,21 @@
, numpy
, pytestCheckHook
, setuptools-scm
, pythonOlder
}:
buildPythonPackage rec {
pname = "emcee";
version = "3.1.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dfm";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-HAuwWFNL63BlvHomQx+hWw4et7kRYd3zhH2FAj632Lg=";
hash = "sha256-HAuwWFNL63BlvHomQx+hWw4et7kRYd3zhH2FAj632Lg=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
@ -31,7 +35,9 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [ "emcee" ];
pythonImportsCheck = [
"emcee"
];
meta = with lib; {
description = "Kick ass affine-invariant ensemble MCMC sampling";