2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-11-27 09:42:12 +00:00
|
|
|
, flit-core
|
2021-09-18 10:52:07 +00:00
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, scipy
|
|
|
|
, tabulate
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "acoustics";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.2.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-0CvMhCUc+i7dPiHH+IXdlj+OjFh/l1wvnU4dmxQrzFI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-11-27 09:42:12 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
2021-06-28 23:13:55 +00:00
|
|
|
export HOME=$TMPDIR
|
|
|
|
mkdir -p $HOME/.matplotlib
|
|
|
|
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-Wignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
2022-11-27 09:42:12 +00:00
|
|
|
# ValueError: Unknown window type: "hanning"
|
|
|
|
"tests/standards/test_iso_1996_2_2007.py"
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "acoustics" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-09-18 10:52:07 +00:00
|
|
|
description = "Python package for acousticians";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ fridh ];
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
homepage = "https://github.com/python-acoustics/python-acoustics";
|
|
|
|
};
|
|
|
|
}
|