Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 869 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pytest 5, six 6, fetchpatch 7, icu 8}: 9 10buildPythonPackage rec { 11 pname = "PyICU"; 12 version = "2.0.3"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "0pzss3l0b0vcsyr7wlqdd6pkcqldspajfgd9k2iijf6r152d2ln4"; 17 }; 18 19 patches = [ 20 (fetchpatch { 21 url = https://sources.debian.org/data/main/p/pyicu/2.0.3-1/debian/patches/icu_test.patch; 22 sha256 = "1iavdkyqixm9i753svl17barla93b7jzgkw09dn3hnggamx7zwx9"; 23 }) 24 ]; 25 26 nativeBuildInputs = [ icu ]; # for icu-config 27 buildInputs = [ icu ]; 28 checkInputs = [ pytest ]; 29 propagatedBuildInputs = [ six ]; 30 31 meta = with stdenv.lib; { 32 homepage = https://pypi.python.org/pypi/PyICU/; 33 description = "Python extension wrapping the ICU C++ API"; 34 license = licenses.mit; 35 platforms = platforms.unix; 36 maintainers = [ maintainers.rycee ]; 37 }; 38 39}