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-03-09 13:07:43 +00:00
|
|
|
version = "0.2.4";
|
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-03-09 13:07:43 +00:00
|
|
|
sha256 = "8ccb68ac258ba81a0b9064523e85eae013f9bfce7244d01db42d7d2d21d712cc";
|
2017-07-14 12:59:48 +01:00
|
|
|
};
|
|
|
|
|
2019-02-16 19:53:29 +00:00
|
|
|
checkPhase = ''
|
2019-02-20 20:52:16 +00:00
|
|
|
pushd tests
|
|
|
|
py.test ./.
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|