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
79
pkgs/development/python-modules/phik/default.nix
Normal file
79
pkgs/development/python-modules/phik/default.nix
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, cmake
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, pytestCheckHook
|
||||
, nbconvert
|
||||
, joblib
|
||||
, jupyter
|
||||
, jupyter-client
|
||||
, numpy
|
||||
, scipy
|
||||
, pandas
|
||||
, matplotlib
|
||||
, ninja
|
||||
, numba
|
||||
, pybind11
|
||||
, scikit-build
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "phik";
|
||||
version = "0.12.2";
|
||||
disabled = !isPy3k;
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KaveIO";
|
||||
repo = "PhiK";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-nr3804MLIBPFw/PlJ9B8xKFFGI5LDp8m2gLtJB7YcEE=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
nbconvert
|
||||
jupyter
|
||||
jupyter-client
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
joblib
|
||||
numpy
|
||||
scipy
|
||||
pandas
|
||||
matplotlib
|
||||
numba
|
||||
pybind11
|
||||
];
|
||||
|
||||
# uses setuptools to drive build process
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
ninja
|
||||
scikit-build
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "phik" ];
|
||||
|
||||
postInstall = ''
|
||||
rm -r $out/bin
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
# import from $out
|
||||
rm -r phik
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Phi_K correlation analyzer library";
|
||||
longDescription = "Phi_K is a new and practical correlation coefficient based on several refinements to Pearson’s hypothesis test of independence of two variables.";
|
||||
homepage = "https://phik.readthedocs.io/en/latest/";
|
||||
changelog = "https://github.com/KaveIO/PhiK/blob/${src.rev}/CHANGES.rst";
|
||||
maintainers = with maintainers; [ melsigl ];
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue