2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-03-20 04:20:00 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, six
|
2021-12-06 16:07:01 +00:00
|
|
|
, icu
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyICU";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "2.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-PCnWzmVUYVcReho0ejA+zfzxp1ke1nn8iM3vQQiEWHg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ icu ]; # for icu-config, but should be replaced with pkg-config
|
|
|
|
buildInputs = [ icu ];
|
2021-03-20 04:20:00 +00:00
|
|
|
checkInputs = [ pytestCheckHook six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [ "icu" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://gitlab.pyicu.org/main/pyicu";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python extension wrapping the ICU C++ API";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://gitlab.pyicu.org/main/pyicu/-/raw/v${version}/CHANGES";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|