83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
45 lines
811 B
Nix
45 lines
811 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, cython
|
|
, gfortran
|
|
, pytestCheckHook
|
|
, numpy }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scikit-misc";
|
|
version = "0.1.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-93RqA0eBEGPh7PkSHflINXhQA5U8OLW6hPY/xQjCKRE=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pytest.ini \
|
|
--replace "--cov --cov-report=xml" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
gfortran
|
|
];
|
|
|
|
buildInputs = [
|
|
cython
|
|
numpy
|
|
];
|
|
|
|
# Tests fail because of infinite recursion error
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|