python.pkgs.emcee: move to separate expression

This commit is contained in:
wisut hantanong 2017-07-14 19:57:40 +07:00 committed by Jörg Thalheim
parent 85239d1455
commit 501eb9712e
2 changed files with 22 additions and 13 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi
, numpy }:
buildPythonPackage rec {
pname = "emcee";
version = "2.1.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0qyafp9jfya0mkxgqfvljf0rkic5fm8nimzwadyrxyvq7nd07qaw";
};
propagatedBuildInputs = [ numpy ];
meta = with stdenv.lib; {
description = "Kick ass affine-invariant ensemble MCMC sampling";
homepage = http://dan.iel.fm/emcee;
license = licenses.mit;
};
}

View File

@ -130,19 +130,7 @@ in {
dkimpy = callPackage ../development/python-modules/dkimpy { };
emcee = buildPythonPackage {
name = "emcee-2.1.0";
src = pkgs.fetchurl {
url = "mirror://pypi/e/emcee/emcee-2.1.0.tar.gz";
sha256 = "0qyafp9jfya0mkxgqfvljf0rkic5fm8nimzwadyrxyvq7nd07qaw";
};
propagatedBuildInputs = [ self.numpy ];
meta = {
homepage = http://dan.iel.fm/emcee;
license = "MIT";
description = "Kick ass affine-invariant ensemble MCMC sampling";
};
};
emcee = callPackage ../development/python-modules/emcee { };
dbus-python = callPackage ../development/python-modules/dbus {
dbus = pkgs.dbus;