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