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-05-18 03:11:34 +02:00
|
|
|
version = "2.7.3";
|
2018-10-26 15:46:52 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-18 03:11:34 +02:00
|
|
|
sha256 = "1jv1pds94agvn3zs33a8p8f0mk7f5pjwmczmg1s05ri5p0kzk4h8";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|