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
74
pkgs/development/python-modules/scikit-survival/default.nix
Normal file
74
pkgs/development/python-modules/scikit-survival/default.nix
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, cython
|
||||
, ecos
|
||||
, joblib
|
||||
, numexpr
|
||||
, numpy
|
||||
, osqp
|
||||
, pandas
|
||||
, setuptools-scm
|
||||
, scikit-learn
|
||||
, scipy
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "scikit-survival";
|
||||
version = "0.17.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-eP58TcFxNG0J32YgnaGhWkkjAC08F3ooPLwMv4ZUA1U=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ecos
|
||||
joblib
|
||||
numexpr
|
||||
numpy
|
||||
osqp
|
||||
pandas
|
||||
scikit-learn
|
||||
scipy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "sksurv" ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
# Hack needed to make pytest + cython work
|
||||
# https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
cp -r $TMP/$sourceRoot/tests $HOME
|
||||
pushd $HOME
|
||||
'';
|
||||
postCheck = "popd";
|
||||
|
||||
# very long tests, unnecessary for a leaf package
|
||||
disabledTests = [
|
||||
"test_coxph"
|
||||
"test_datasets"
|
||||
"test_ensemble_selection"
|
||||
"test_minlip"
|
||||
"test_pandas_inputs"
|
||||
"test_survival_svm"
|
||||
"test_tree"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64);
|
||||
description = "Survival analysis built on top of scikit-learn";
|
||||
homepage = "https://github.com/sebp/scikit-survival";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ GuillaumeDesforges ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue