nixpkgs/pkgs/development/python-modules/parselmouth/default.nix
2024-10-19 20:48:09 +02:00

60 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
cmake,
fetchFromGitHub,
future,
numpy,
pytest-lazy-fixture,
pytestCheckHook,
pythonOlder,
scikit-build,
setuptools,
}:
buildPythonPackage rec {
pname = "parselmouth";
version = "0.4.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "YannickJadoul";
repo = "Parselmouth";
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-/Hde/DpSbmHs8WF3PAk4esYuMgOX6SxMaYJrrHYr/ZU=";
};
configurePhase = ''
# doesn't happen automatically
export MAKEFLAGS=-j$NIX_BUILD_CORES
'';
build-system = [
cmake
scikit-build
setuptools
];
dontUseCmakeConfigure = true;
dependencies = [ numpy ];
nativeCheckInputs = [
future
pytest-lazy-fixture
pytestCheckHook
];
pythonImportsCheck = [ "parselmouth" ];
meta = {
description = "Praat in Python, the Pythonic way";
homepage = "https://github.com/YannickJadoul/Parselmouth";
changelog = "https://github.com/YannickJadoul/Parselmouth/releases/tag/v${version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ derdennisop ];
};
}