15 buildPythonPackage rec {
16 pname = "scikit-misc";
20 src = fetchFromGitHub {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-w6RHmVxJjLx9ov2LxXvicxmY8jixfkIRfbfVnV2yhOU=";
30 # unbound numpy and disable coverage testing in pytest
31 substituteInPlace pyproject.toml \
32 --replace-fail 'numpy>=2.0' 'numpy' \
33 --replace-fail 'addopts = "' '#addopts = "'
35 # provide a version to use when git fails to get the tag
36 [[ -f skmisc/_version.py ]] || \
37 echo '__version__ = "${version}"' > skmisc/_version.py
53 dependencies = [ numpy ];
55 nativeCheckInputs = [ pytestCheckHook ];
57 # can not run tests from source directory
62 pytestFlagsArray = [ "--pyargs skmisc" ];
64 pythonImportsCheck = [ "skmisc" ];
67 description = "Miscellaneous tools for scientific computing";
68 homepage = "https://github.com/has2k1/scikit-misc";
69 license = licenses.bsd3;
70 maintainers = with maintainers; [ onny ];