biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / parselmouth / default.nix
blob43e718c133aed9ca9a0a61c4e242ca5f66fa4378
2   lib,
3   buildPythonPackage,
4   cmake,
5   fetchFromGitHub,
6   future,
7   numpy,
8   pytest-lazy-fixture,
9   pytestCheckHook,
10   pythonOlder,
11   scikit-build,
12   setuptools,
15 buildPythonPackage rec {
16   pname = "parselmouth";
17   version = "0.4.4";
18   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "YannickJadoul";
23     repo = "Parselmouth";
24     # Stable branch with cherry picked changes to fit to the newer dependencies versions https://github.com/YannickJadoul/Parselmouth/issues/130
25     rev = "c2cbecc0ce4a0b5d3052cc6c6fbddf4bf133655d";
26     fetchSubmodules = true;
27     hash = "sha256-+6id0PVfpiVjee7O4ZoskNK0dz5ZmTYRTtum3B3tIgE=";
28   };
30   configurePhase = ''
31     # doesn't happen automatically
32     export MAKEFLAGS=-j$NIX_BUILD_CORES
33   '';
35   build-system = [
36     cmake
37     scikit-build
38     setuptools
39   ];
41   dontUseCmakeConfigure = true;
43   dependencies = [ numpy ];
45   nativeCheckInputs = [
46     future
47     pytest-lazy-fixture
48     pytestCheckHook
49   ];
51   pythonImportsCheck = [ "parselmouth" ];
53   meta = {
54     description = "Praat in Python, the Pythonic way";
55     homepage = "https://github.com/YannickJadoul/Parselmouth";
56     changelog = "https://github.com/YannickJadoul/Parselmouth/releases/tag/v${version}";
57     license = lib.licenses.gpl3Plus;
58     maintainers = with lib.maintainers; [ derdennisop ];
59   };