nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, numpy
5, pytestCheckHook
6, setuptools-scm
7}:
8
9buildPythonPackage rec {
10 pname = "emcee";
11 version = "3.1.2";
12
13 src = fetchFromGitHub {
14 owner = "dfm";
15 repo = pname;
16 rev = "refs/tags/v${version}";
17 sha256 = "sha256-MguhnLLo1zeNuMca8vWpxwysh9YJDD+IzvGQDbScK2M=";
18 };
19
20 SETUPTOOLS_SCM_PRETEND_VERSION = version;
21
22 nativeBuildInputs = [
23 setuptools-scm
24 ];
25
26 propagatedBuildInputs = [
27 numpy
28 ];
29
30 checkInputs = [
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [ "emcee" ];
35
36 meta = with lib; {
37 description = "Kick ass affine-invariant ensemble MCMC sampling";
38 homepage = "https://emcee.readthedocs.io/";
39 license = licenses.mit;
40 maintainers = with maintainers; [ ];
41 };
42}