python3Packages.parselmouth: init at 0.4.4

This commit is contained in:
Dennis Wuitz 2024-08-07 12:27:56 +02:00
parent c8a944b724
commit 8ce5fdc45a
No known key found for this signature in database
GPG Key ID: 4B56B2FE5C3315E4
2 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,60 @@
{
lib,
buildPythonPackage,
cmake,
fetchFromGitHub,
future,
numpy,
pytest-lazy-fixture,
pytestCheckHook,
pythonOlder,
scikit-build,
setuptools,
}:
buildPythonPackage rec {
pname = "parselmouth";
version = "0.4.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "YannickJadoul";
repo = "Parselmouth";
# Stable branch with cherry picked changes to fit to the newer dependencies versions https://github.com/YannickJadoul/Parselmouth/issues/130
rev = "c2cbecc0ce4a0b5d3052cc6c6fbddf4bf133655d";
fetchSubmodules = true;
hash = "sha256-+6id0PVfpiVjee7O4ZoskNK0dz5ZmTYRTtum3B3tIgE=";
};
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 ];
};
}

View File

@ -9738,6 +9738,8 @@ self: super: with self; {
parsel = callPackage ../development/python-modules/parsel { };
parselmouth = callPackage ../development/python-modules/parselmouth { };
parse-type = callPackage ../development/python-modules/parse-type { };
parsimonious = callPackage ../development/python-modules/parsimonious { };