mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #31103 from rybern/bump-pomegranate
pythonPackages.pomegranate: 0.8.0 -> 0.8.1
This commit is contained in:
commit
7daa03590d
2 changed files with 13 additions and 14 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue