nixos/java: No bashisms in `environment.shellInit` script (#294121)
[NixPkgs.git] / pkgs / development / python-modules / ufal-chu-liu-edmonds / default.nix
blob7eca9f144b1d05e6d60ce575c4e46ae7120930c2
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   numpy,
7 }:
9 buildPythonPackage rec {
10   pname = "ufal-chu-liu-edmonds";
11   version = "1.0.3";
12   pyproject = true;
14   src = fetchPypi {
15     pname = "ufal.chu_liu_edmonds";
16     inherit version;
17     hash = "sha256-v3tv6cYWoFPPgaO6KXR2uUk3MsZ458Tz5wKeFW8fzNE=";
18   };
20   build-system = [ setuptools ];
22   nativeCheckInputs = [ numpy ];
24   checkPhase = ''
25     runHook preCheck
26     cd tests
27     python test.py
28     runHook postCheck
29   '';
31   pythonImportsCheck = [ "ufal.chu_liu_edmonds" ];
33   meta = with lib; {
34     description = "Bindings to Chu-Liu-Edmonds algorithm from TurboParser";
35     homepage = "https://github.com/ufal/chu_liu_edmonds";
36     license = licenses.gpl3Only;
37     maintainers = with maintainers; [ vizid ];
38   };