2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flit-core,
|
|
|
|
matplotlib,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
scipy,
|
|
|
|
tabulate,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "acoustics";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.2.6-unstable-2023-08-20";
|
|
|
|
pyproject = true;
|
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
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-acoustics";
|
2024-06-05 15:53:02 +00:00
|
|
|
repo = "python-acoustics";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "99d79206159b822ea2f4e9d27c8b2fbfeb704d38";
|
|
|
|
hash = "sha256-/4bVjlhj8ihpAFHEWPaZ/xBILi3rb8f0NmwAexJCg+o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "-Wignore::DeprecationWarning" ];
|
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
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
homepage = "https://github.com/python-acoustics/python-acoustics";
|
|
|
|
};
|
|
|
|
}
|