2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 14:46:52 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-03-24 19:46:49 +00:00
|
|
|
, pytestCheckHook
|
2018-10-26 14:46:52 +01:00
|
|
|
, six
|
2021-05-18 03:28:13 +01:00
|
|
|
, icu68
|
2018-10-26 14:46:52 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyICU";
|
2021-06-18 22:47:32 +01:00
|
|
|
version = "2.7.4";
|
2018-10-26 14:46:52 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 22:47:32 +01:00
|
|
|
sha256 = "c0655302e2aea16f9acefe04152f74e5d7d70542e9e15c89ee8d763c8e097f56";
|
2018-10-26 14:46:52 +01:00
|
|
|
};
|
|
|
|
|
2021-05-18 03:28:13 +01:00
|
|
|
nativeBuildInputs = [ icu68 ]; # for icu-config, but should be replaced with pkg-config
|
|
|
|
buildInputs = [ icu68 ];
|
2021-03-24 19:46:49 +00:00
|
|
|
checkInputs = [ pytestCheckHook six ];
|
2018-10-26 14:46:52 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-03-24 19:46:49 +00:00
|
|
|
homepage = "https://github.com/ovalhub/pyicu/";
|
2018-10-26 14:46:52 +01:00
|
|
|
description = "Python extension wrapping the ICU C++ API";
|
|
|
|
license = licenses.mit;
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2018-10-26 14:46:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|