dbc085cb44
There's a bit of LaTeX math code in a comment in a test file: ``` .. math:: L = 10 \cdot \\log_{10}{\\left(\\frac{MS}{p_r^2} \\right)} ``` which of course should be `\\cdot`. I could patch it, but I think skipping deprecation warnings in tests is probably ok... (If nothing else it's easier.)
31 lines
777 B
Nix
31 lines
777 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, pytest, numpy, scipy, matplotlib, pandas, tabulate, pythonOlder }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "acoustics";
|
|
version = "0.2.4.post0";
|
|
|
|
checkInputs = [ pytest ];
|
|
propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a162625e5e70ed830fab8fab0ddcfe35333cb390cd24b0a827bcefc5bbcae97d";
|
|
};
|
|
|
|
checkPhase = ''
|
|
pushd tests
|
|
py.test -Wignore::DeprecationWarning ./.
|
|
popd
|
|
'';
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
meta = with lib; {
|
|
description = "A package for acousticians";
|
|
maintainers = with maintainers; [ fridh ];
|
|
license = with licenses; [ bsd3 ];
|
|
homepage = "https://github.com/python-acoustics/python-acoustics";
|
|
};
|
|
}
|