Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 six, 7 icu, 8}: 9 10buildPythonPackage rec { 11 pname = "pyicu"; 12 version = "2.13.1"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 pname = "PyICU"; 17 inherit version; 18 hash = "sha256-1JGQheqgfaErrejuch57v3reAVHKD4KUaibI9LmM3Os="; 19 }; 20 21 nativeBuildInputs = [ icu ]; # for icu-config, but should be replaced with pkg-config 22 buildInputs = [ icu ]; 23 nativeCheckInputs = [ 24 pytestCheckHook 25 six 26 ]; 27 28 pythonImportsCheck = [ "icu" ]; 29 30 meta = with lib; { 31 homepage = "https://gitlab.pyicu.org/main/pyicu"; 32 description = "Python extension wrapping the ICU C++ API"; 33 changelog = "https://gitlab.pyicu.org/main/pyicu/-/raw/v${version}/CHANGES"; 34 license = licenses.mit; 35 }; 36}