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
|
|
|
|
, icu
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyICU";
|
2021-03-20 04:20:00 +00:00
|
|
|
version = "2.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-20 04:20:00 +00:00
|
|
|
sha256 = "0wb3v421i2fnnxdywam4ay8hqvnxlz0r2nrpx5lqy3rn6dlbz9d9";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ icu ]; # for icu-config
|
|
|
|
buildInputs = [ icu ];
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|