2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
32 lines
747 B
Nix
32 lines
747 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, six
|
|
, icu
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyicu";
|
|
version = "2.11";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyICU";
|
|
inherit version;
|
|
hash = "sha256-OrUxJkz+kTKz0qxdcI2ppGSdJfbmgTcwrIjPBAoIqEQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ icu ]; # for icu-config, but should be replaced with pkg-config
|
|
buildInputs = [ icu ];
|
|
nativeCheckInputs = [ pytestCheckHook six ];
|
|
|
|
pythonImportsCheck = [ "icu" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gitlab.pyicu.org/main/pyicu";
|
|
description = "Python extension wrapping the ICU C++ API";
|
|
changelog = "https://gitlab.pyicu.org/main/pyicu/-/raw/v${version}/CHANGES";
|
|
license = licenses.mit;
|
|
};
|
|
}
|