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