Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 57 lines
Nix
at flake-libs
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, fetchFromGitHub, pythonOlder, pytestCheckHook, buildPythonPackage, cython_0, mecab, setuptools-scm, ipadic, unidic, unidic-lite,}:
buildPythonPackage rec { pname = "fugashi"; version = "1.3.0"; format = "setuptools"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "polm"; repo = "fugashi"; tag = "v${version}"; hash = "sha256-4i7Q+TtXTQNSJ1EIcS8KHrVPdCJAgZh86Y6lB8772XU="; };
nativeBuildInputs = [ cython_0 mecab setuptools-scm ];
nativeCheckInputs = [ ipadic pytestCheckHook ] ++ optional-dependencies.unidic-lite;
optional-dependencies = { unidic-lite = [ unidic-lite ]; unidic = [ unidic ]; };
preCheck = '' cd fugashi '';
pythonImportsCheck = [ "fugashi" ];
meta = with lib; { description = "Cython MeCab wrapper for fast, pythonic Japanese tokenization and morphological analysis"; homepage = "https://github.com/polm/fugashi"; changelog = "https://github.com/polm/fugashi/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ laurent-f1z1 ]; };}