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