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