fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
36 lines
765 B
Nix
36 lines
765 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
six,
|
|
icu,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyicu";
|
|
version = "2.12";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "PyICU";
|
|
inherit version;
|
|
hash = "sha256-vXq176k61pLm2qKc0kk2TlISGDKSIXJqETyjyygchhE=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|