2019-02-16 19:53:29 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, pytest, numpy, scipy, matplotlib, pandas, tabulate, pythonOlder }:
|
2017-07-14 12:59:48 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "acoustics";
|
2020-05-09 10:17:42 +01:00
|
|
|
version = "0.2.4.post0";
|
2017-07-14 12:59:48 +01:00
|
|
|
|
2019-02-16 19:53:29 +00:00
|
|
|
checkInputs = [ pytest ];
|
2017-07-14 12:59:48 +01:00
|
|
|
propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 10:17:42 +01:00
|
|
|
sha256 = "a162625e5e70ed830fab8fab0ddcfe35333cb390cd24b0a827bcefc5bbcae97d";
|
2017-07-14 12:59:48 +01:00
|
|
|
};
|
|
|
|
|
2019-02-16 19:53:29 +00:00
|
|
|
checkPhase = ''
|
2021-05-27 00:02:49 +01:00
|
|
|
export HOME=$TMPDIR
|
|
|
|
mkdir -p $HOME/.matplotlib
|
|
|
|
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
|
|
|
|
|
2019-02-20 20:52:16 +00:00
|
|
|
pushd tests
|
2021-05-26 15:59:47 +01:00
|
|
|
py.test -Wignore::DeprecationWarning ./.
|
2019-02-20 20:52:16 +00:00
|
|
|
popd
|
2019-02-16 19:53:29 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-07-14 12:59:48 +01:00
|
|
|
description = "A package for acousticians";
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = with maintainers; [ fridh ];
|
2017-07-14 12:59:48 +01:00
|
|
|
license = with licenses; [ bsd3 ];
|
2020-02-22 20:13:22 +00:00
|
|
|
homepage = "https://github.com/python-acoustics/python-acoustics";
|
2017-07-14 12:59:48 +01:00
|
|
|
};
|
|
|
|
}
|