emacsPackages.treemacs: replace python3 program (#364623)
[NixPkgs.git] / pkgs / development / python-modules / emcee / default.nix
blobcefe2c87cd8a20db7b9ac669b281c91404198144
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   numpy,
6   pytestCheckHook,
7   setuptools-scm,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "emcee";
13   version = "3.1.6";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "dfm";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-JVZK3kvDwWENho0OxZ9OxATcm3XpGmX+e7alPclRsHY=";
23   };
25   nativeBuildInputs = [ setuptools-scm ];
27   propagatedBuildInputs = [ numpy ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "emcee" ];
33   meta = with lib; {
34     description = "Kick ass affine-invariant ensemble MCMC sampling";
35     homepage = "https://emcee.readthedocs.io/";
36     changelog = "https://github.com/dfm/emcee/releases/tag/v${version}";
37     license = licenses.mit;
38     maintainers = [ ];
39   };