uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/development/python-modules/pomegranate/default.nix
Normal file
40
pkgs/development/python-modules/pomegranate/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, numpy
|
||||
, scipy
|
||||
, cython
|
||||
, networkx
|
||||
, joblib
|
||||
, pandas
|
||||
, nose
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pomegranate";
|
||||
version = "0.14.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = pname;
|
||||
owner = "jmschrei";
|
||||
# no tags for recent versions: https://github.com/jmschrei/pomegranate/issues/974
|
||||
rev = "0652e955c400bc56df5661db3298a06854c7cce8";
|
||||
sha256 = "16g49nl2bgnh6nh7bd21s393zbksdvgp9l13ww2diwhplj6hlly3";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy cython networkx joblib pyyaml ];
|
||||
|
||||
checkInputs = [ pandas nose ]; # as of 0.13.5, it depends explicitly on nose, rather than pytest.
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "Probabilistic and graphical models for Python, implemented in cython for speed";
|
||||
homepage = "https://github.com/jmschrei/pomegranate";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ rybern ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
Test started failing after upgrading networkx 2.5.1 -> 2.6.2:
|
||||
https://github.com/jmschrei/pomegranate/issues/939
|
||||
|
||||
Failures look benigh.
|
||||
--- a/tests/test_bayesian_network.py
|
||||
+++ b/tests/test_bayesian_network.py
|
||||
@@ -1057,7 +1057,8 @@ def test_exact_structure_learning_exclude_edges():
|
||||
assert_not_equal(model.structure[-2], (d-1,))
|
||||
assert_equal(model.structure[-2], (1,))
|
||||
|
||||
-def test_exact_dp_structure_learning_exclude_edges():
|
||||
+# disabled for https://github.com/jmschrei/pomegranate/issues/939
|
||||
+def disabled_exact_dp_structure_learning_exclude_edges():
|
||||
for X in datasets:
|
||||
X = X.copy()
|
||||
X[:,1] = X[:,-1]
|
||||
@@ -1139,7 +1140,8 @@ def test_constrained_parents_structure_learning_exclude_edges():
|
||||
assert_equal(model.structure[7], (2,))
|
||||
assert_equal(model.structure[4], (0,))
|
||||
|
||||
-def test_constrained_slap_structure_learning_exclude_edges():
|
||||
+# disabled for https://github.com/jmschrei/pomegranate/issues/939
|
||||
+def disabled_constrained_slap_structure_learning_exclude_edges():
|
||||
for X in datasets:
|
||||
X = X.copy()
|
||||
X[:,1] = X[:,-1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue