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
|
2019-03-16 08:48:01 +00:00
|
|
|
, icu
|
2018-10-26 14:46:52 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyICU";
|
2021-03-24 19:46:49 +00:00
|
|
|
version = "2.6";
|
2018-10-26 14:46:52 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 19:46:49 +00:00
|
|
|
sha256 = "0wb3v421i2fnnxdywam4ay8hqvnxlz0r2nrpx5lqy3rn6dlbz9d9";
|
2018-10-26 14:46:52 +01:00
|
|
|
};
|
|
|
|
|
2019-03-16 08:48:01 +00:00
|
|
|
nativeBuildInputs = [ icu ]; # for icu-config
|
|
|
|
buildInputs = [ icu ];
|
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
|
|
|
maintainers = [ maintainers.rycee ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|