nixos/java: No bashisms in `environment.shellInit` script (#294121)
[NixPkgs.git] / pkgs / development / python-modules / parselmouth / default.nix
blob78417fe48c0bc3bdb4c82bb44c4210562ecb27c5
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.5";
18   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "YannickJadoul";
23     repo = "Parselmouth";
24     rev = "v${version}";
25     fetchSubmodules = true;
26     hash = "sha256-/Hde/DpSbmHs8WF3PAk4esYuMgOX6SxMaYJrrHYr/ZU=";
27   };
29   configurePhase = ''
30     # doesn't happen automatically
31     export MAKEFLAGS=-j$NIX_BUILD_CORES
32   '';
34   build-system = [
35     cmake
36     scikit-build
37     setuptools
38   ];
40   dontUseCmakeConfigure = true;
42   dependencies = [ numpy ];
44   nativeCheckInputs = [
45     future
46     pytest-lazy-fixture
47     pytestCheckHook
48   ];
50   pythonImportsCheck = [ "parselmouth" ];
52   meta = {
53     description = "Praat in Python, the Pythonic way";
54     homepage = "https://github.com/YannickJadoul/Parselmouth";
55     changelog = "https://github.com/YannickJadoul/Parselmouth/releases/tag/v${version}";
56     license = lib.licenses.gpl3Plus;
57     maintainers = with lib.maintainers; [ derdennisop ];
58   };