1{ lib, buildPythonPackage, fetchPypi
2, pytest, numpy, scipy, matplotlib, pandas, tabulate, pythonOlder }:
3
4buildPythonPackage rec {
5 pname = "acoustics";
6 version = "0.2.4.post0";
7
8 checkInputs = [ pytest ];
9 propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "a162625e5e70ed830fab8fab0ddcfe35333cb390cd24b0a827bcefc5bbcae97d";
14 };
15
16 checkPhase = ''
17 pushd tests
18 py.test ./.
19 popd
20 '';
21
22 disabled = pythonOlder "3.6";
23
24 meta = with lib; {
25 description = "A package for acousticians";
26 maintainers = with maintainers; [ fridh ];
27 license = with licenses; [ bsd3 ];
28 homepage = "https://github.com/python-acoustics/python-acoustics";
29 };
30}