Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 66 lines
Nix
at llvm-cleanup
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, buildPythonPackage, deprecated, fetchFromGitHub, importlib-metadata, jaconv, py-cpuinfo, pytest-benchmark, pytestCheckHook, pythonOlder, setuptools, setuptools-scm,}:
buildPythonPackage rec { pname = "pykakasi"; version = "2.2.1"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "miurahr"; repo = "pykakasi"; rev = "refs/tags/v${version}"; hash = "sha256-ivlenHPD00bxc0c9G368tfTEckOC3vqDB5kMQzHXbVM=="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail ', "klepto"' "" '';
build-system = [ setuptools-scm ];
dependencies = [ jaconv deprecated setuptools ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
nativeCheckInputs = [ py-cpuinfo pytest-benchmark pytestCheckHook ];
disabledTests = [ # We don't care about benchmarks "test_benchmark" "pytest_benchmark_update_machine_info" "pytest_benchmark_update_json" ];
pythonImportsCheck = [ "pykakasi" ];
meta = with lib; { description = "Python converter for Japanese Kana-kanji sentences into Kana-Roman"; mainProgram = "kakasi"; homepage = "https://github.com/miurahr/pykakasi"; changelog = "https://github.com/miurahr/pykakasi/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}