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-05-20 23:08:51 +00:00
|
|
|
, icu68
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyICU";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2.7.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "c0655302e2aea16f9acefe04152f74e5d7d70542e9e15c89ee8d763c8e097f56";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [ icu68 ]; # for icu-config, but should be replaced with pkg-config
|
|
|
|
buildInputs = [ icu68 ];
|
2021-03-20 04:20:00 +00:00
|
|
|
checkInputs = [ pytestCheckHook six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-03-20 04:20:00 +00:00
|
|
|
homepage = "https://github.com/ovalhub/pyicu/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python extension wrapping the ICU C++ API";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|