nixpkgs/pkgs/development/python-modules/acoustics/default.nix
Frederik Rietdijk 5772ac5a75 Removing FRidh as active maintainer of packages
In the past I was very active with Python packaging.
For several years now I was hardly around as maintainer,
so it does not make sense I am listed as a maintainer for
these makes. Looking back, I should have removed myself
as maintainer already much longer ago. Anyway, better late
than never.

It's been a fun ride, and  I do intend to occasionally contribute
to Nixpkgs, but not in the same way it once was.
2024-04-28 12:20:07 +02:00

60 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, matplotlib
, numpy
, pandas
, pytestCheckHook
, pythonOlder
, scipy
, tabulate
}:
buildPythonPackage rec {
pname = "acoustics";
version = "0.2.6-unstable-2023-08-20";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "python-acoustics";
repo = "python-acoustics";
rev = "99d79206159b822ea2f4e9d27c8b2fbfeb704d38";
hash = "sha256-/4bVjlhj8ihpAFHEWPaZ/xBILi3rb8f0NmwAexJCg+o=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
matplotlib
numpy
pandas
scipy
tabulate
];
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
export HOME=$TMPDIR
mkdir -p $HOME/.matplotlib
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
'';
pytestFlagsArray = [
"-Wignore::DeprecationWarning"
];
pythonImportsCheck = [ "acoustics" ];
meta = with lib; {
description = "Python package for acousticians";
license = with licenses; [ bsd3 ];
homepage = "https://github.com/python-acoustics/python-acoustics";
};
}