Merge pull request #31103 from rybern/bump-pomegranate

pythonPackages.pomegranate: 0.8.0 -> 0.8.1
This commit is contained in:
Jörg Thalheim 2017-11-02 08:26:01 +00:00 committed by GitHub
commit 7daa03590d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 14 deletions

View File

@ -6,6 +6,7 @@
, numpydoc
, isPy3k
, stdenv
, pytest
}:
@ -18,14 +19,10 @@ buildPythonPackage rec {
sha256 = "7b8fd56df36d9731a83729395ccb85a3b401f62a96255deb1a77220c00ed4085";
};
checkInputs = [ nose sphinx numpydoc ];
checkInputs = [ sphinx numpydoc pytest ];
# Failing test on Python 3.x and Darwin
postPatch = '''' + lib.optionalString (isPy3k || stdenv.isDarwin) ''
sed -i -e '70,84d' joblib/test/test_format_stack.py
# test_nested_parallel_warnings: ValueError: Non-zero return code: -9.
# Not sure why but it's nix-specific. Try removing for new joblib releases.
rm joblib/test/test_parallel.py
checkPhase = ''
py.test -k 'not test_disk_used and not test_nested_parallel_warnings' joblib/test
'';
meta = {
@ -33,4 +30,4 @@ buildPythonPackage rec {
homepage = http://pythonhosted.org/joblib/;
license = lib.licenses.bsd3;
};
}
}

View File

@ -1,13 +1,15 @@
{ stdenv, buildPythonPackage, fetchPypi, numpy, scipy, cython, networkx, joblib, nose }:
{ stdenv, buildPythonPackage, fetchFromGitHub, numpy, scipy, cython, networkx, joblib, nose }:
buildPythonPackage rec {
pname = "pomegranate";
version = "0.8.0";
version = "0.8.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "6b03d05bffbe46c674800652cf273a8d338a2e40001b763cd6925aac0b578a43";
src = fetchFromGitHub {
repo = pname;
owner = "jmschrei";
rev = "v${version}";
sha256 = "085nka5bh88bxbd5vl1azyv9cfpp6grz2ngclc85f9kgccac1djr";
};
propagatedBuildInputs = [ numpy scipy cython networkx joblib ];