python312Packages.scikit-misc: 0.4.0 -> 0.5.1

Diff: https://github.com/has2k1/scikit-misc/compare/refs/tags/v0.4.0...v0.5.1
This commit is contained in:
natsukium 2024-11-01 21:28:16 +09:00
parent ede6eeb315
commit d04833bf5c
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -7,24 +7,21 @@
git, git,
meson-python, meson-python,
pkg-config, pkg-config,
blas,
lapack,
numpy, numpy,
setuptools, setuptools,
wheel,
pytestCheckHook, pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "scikit-misc"; pname = "scikit-misc";
version = "0.4.0"; version = "0.5.1";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "has2k1"; owner = "has2k1";
repo = "scikit-misc"; repo = "scikit-misc";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-/mX6gRc52rkHKr6GI9XIHbksdhqpksndmSBNMtk3HFs="; hash = "sha256-w6RHmVxJjLx9ov2LxXvicxmY8jixfkIRfbfVnV2yhOU=";
}; };
postPatch = '' postPatch = ''
@ -32,8 +29,8 @@ buildPythonPackage rec {
# unbound numpy and disable coverage testing in pytest # unbound numpy and disable coverage testing in pytest
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace 'numpy==' 'numpy>=' \ --replace-fail 'numpy>=2.0' 'numpy' \
--replace 'addopts = "' '#addopts = "' --replace-fail 'addopts = "' '#addopts = "'
# provide a version to use when git fails to get the tag # provide a version to use when git fails to get the tag
[[ -f skmisc/_version.py ]] || \ [[ -f skmisc/_version.py ]] || \
@ -41,27 +38,19 @@ buildPythonPackage rec {
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
cython
gfortran gfortran
git git
pkg-config
];
build-system = [
cython
meson-python meson-python
numpy numpy
pkg-config
setuptools setuptools
wheel
]; ];
propagatedBuildInputs = [ numpy ]; dependencies = [ numpy ];
buildInputs = [
blas
lapack
];
mesonFlags = [
"-Dblas=${blas.pname}"
"-Dlapack=${lapack.pname}"
];
nativeCheckInputs = [ pytestCheckHook ]; nativeCheckInputs = [ pytestCheckHook ];