2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchFromGitHub
|
2022-07-18 16:21:45 +00:00
|
|
|
, cython
|
|
|
|
, gfortran
|
2023-07-15 17:15:38 +00:00
|
|
|
, git
|
|
|
|
, meson-python
|
|
|
|
, pkg-config
|
|
|
|
, numpy
|
|
|
|
, openblas
|
2023-10-09 19:29:22 +00:00
|
|
|
, setuptools
|
|
|
|
, wheel
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikit-misc";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.3.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "has2k1";
|
|
|
|
repo = "scikit-misc";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-XV3s+y3JdMr1770S91ek6Y7MqvTg7/2cphLQldUPe5s=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2023-07-15 17:15:38 +00:00
|
|
|
patchShebangs .
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace 'numpy==' 'numpy>='
|
2022-07-18 16:21:45 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
cython
|
2022-07-18 16:21:45 +00:00
|
|
|
gfortran
|
2023-07-15 17:15:38 +00:00
|
|
|
git
|
|
|
|
meson-python
|
2023-10-09 19:29:22 +00:00
|
|
|
numpy
|
2023-07-15 17:15:38 +00:00
|
|
|
pkg-config
|
2023-10-09 19:29:22 +00:00
|
|
|
setuptools
|
|
|
|
wheel
|
2022-07-18 16:21:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
numpy
|
2023-07-15 17:15:38 +00:00
|
|
|
openblas
|
2022-07-18 16:21:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"skmisc"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Miscellaneous tools for scientific computing";
|
|
|
|
homepage = "https://github.com/has2k1/scikit-misc";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|