about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/acoustics/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/acoustics/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/acoustics/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/acoustics/default.nix b/nixpkgs/pkgs/development/python-modules/acoustics/default.nix
new file mode 100644
index 000000000000..7f54af28bd88
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/acoustics/default.nix
@@ -0,0 +1,30 @@
+{ 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;
+  };
+}