2018-10-26 14:46:52 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, six
|
|
|
|
, fetchpatch
|
2019-03-16 08:48:01 +00:00
|
|
|
, icu
|
2018-10-26 14:46:52 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyICU";
|
2019-06-06 14:41:46 +01:00
|
|
|
version = "2.3.1";
|
2018-10-26 14:46:52 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-06 14:41:46 +01:00
|
|
|
sha256 = "ddb2b453853b4c25db382bc5e8c4cde09b3f4696ef1e1494f8294e174f459cf4";
|
2018-10-26 14:46:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2019-06-06 14:40:25 +01:00
|
|
|
url = "https://salsa.debian.org/python-team/modules/pyicu/raw/debian/2.2-2/"
|
|
|
|
+ "debian/patches/icu_test.patch";
|
2018-10-26 14:46:52 +01:00
|
|
|
sha256 = "1iavdkyqixm9i753svl17barla93b7jzgkw09dn3hnggamx7zwx9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-03-16 08:48:01 +00:00
|
|
|
nativeBuildInputs = [ icu ]; # for icu-config
|
|
|
|
buildInputs = [ icu ];
|
|
|
|
checkInputs = [ pytest ];
|
2018-10-26 14:46:52 +01:00
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|