31 lines
746 B
Nix
31 lines
746 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, pytest, numpy, scipy, matplotlib, pandas, tabulate, pythonOlder }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "acoustics";
|
|
version = "0.2.0.post2";
|
|
|
|
checkInputs = [ pytest ];
|
|
propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "c0ca4d7ca67fd867c3a7e34232a98a1fc210ee7ff845f3d2eed445a01737b2ff";
|
|
};
|
|
|
|
checkPhase = ''
|
|
pushd tests
|
|
py.test ./.
|
|
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;
|
|
};
|
|
}
|