1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, pytest
5, six
6, fetchpatch
7, icu
8}:
9
10buildPythonPackage rec {
11 pname = "PyICU";
12 version = "2.3.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "ddb2b453853b4c25db382bc5e8c4cde09b3f4696ef1e1494f8294e174f459cf4";
17 };
18
19 patches = [
20 (fetchpatch {
21 url = "https://salsa.debian.org/python-team/modules/pyicu/raw/debian/2.2-2/"
22 + "debian/patches/icu_test.patch";
23 sha256 = "1iavdkyqixm9i753svl17barla93b7jzgkw09dn3hnggamx7zwx9";
24 })
25 ];
26
27 nativeBuildInputs = [ icu ]; # for icu-config
28 buildInputs = [ icu ];
29 checkInputs = [ pytest ];
30 propagatedBuildInputs = [ six ];
31
32 meta = with stdenv.lib; {
33 homepage = "https://pypi.python.org/pypi/PyICU/";
34 description = "Python extension wrapping the ICU C++ API";
35 license = licenses.mit;
36 platforms = platforms.unix;
37 maintainers = [ maintainers.rycee ];
38 };
39
40}