nixpkgs/pkgs/development/python-modules/emcee/default.nix

43 lines
755 B
Nix
Raw Normal View History

2021-07-02 20:33:12 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytestCheckHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "emcee";
2021-08-24 05:17:16 +00:00
version = "3.1.1";
2021-07-02 20:33:12 +00:00
src = fetchFromGitHub {
owner = "dfm";
repo = pname;
rev = "v${version}";
2021-08-24 05:17:16 +00:00
sha256 = "0q9dj7mihjjkcy6famzwhz1xcxxzzvm00n01w4bbm66ax9zvis52";
};
2021-07-02 20:33:12 +00:00
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
numpy
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "emcee" ];
meta = with lib; {
description = "Kick ass affine-invariant ensemble MCMC sampling";
homepage = "https://emcee.readthedocs.io/";
license = licenses.mit;
2021-07-02 20:33:12 +00:00
maintainers = with maintainers; [ ];
};
}