nixpkgs/pkgs/development/python-modules/pykakasi/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

63 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, deprecated
, fetchFromGitHub
, importlib-metadata
, jaconv
, py-cpuinfo
, pytest-benchmark
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pykakasi";
version = "2.2.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "miurahr";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-ivlenHPD00bxc0c9G368tfTEckOC3vqDB5kMQzHXbVM==";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
jaconv
deprecated
] ++ 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";
homepage = "https://github.com/miurahr/pykakasi";
changelog = "https://github.com/miurahr/pykakasi/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}