1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 six,
7 icu,
8}:
9
10buildPythonPackage rec {
11 pname = "pyicu";
12 version = "2.12";
13 format = "setuptools";
14
15 src = fetchPypi {
16 pname = "PyICU";
17 inherit version;
18 hash = "sha256-vXq176k61pLm2qKc0kk2TlISGDKSIXJqETyjyygchhE=";
19 };
20
21 nativeBuildInputs = [ icu ]; # for icu-config, but should be replaced with pkg-config
22 buildInputs = [ icu ];
23 nativeCheckInputs = [
24 pytestCheckHook
25 six
26 ];
27
28 pythonImportsCheck = [ "icu" ];
29
30 meta = with lib; {
31 homepage = "https://gitlab.pyicu.org/main/pyicu";
32 description = "Python extension wrapping the ICU C++ API";
33 changelog = "https://gitlab.pyicu.org/main/pyicu/-/raw/v${version}/CHANGES";
34 license = licenses.mit;
35 };
36}