nixpkgs/pkgs/development/python-modules/pyicu/default.nix
Vladimír Čunát 3d64cd31a2
python3Packages.PyICU: 2.9 -> 2.10.2
Otherwise tests would fail; most likely fixed by:
https://gitlab.pyicu.org/main/pyicu/-/commit/8331f889a1e840e
CHANGES look backward compatible.
2022-11-06 08:25:55 +01:00

31 lines
705 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, six
, icu
}:
buildPythonPackage rec {
pname = "PyICU";
version = "2.10.2";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-DDMJ7qf6toV1B6zmJANRW2D+CWy/tPkNFPVf91xUQcE=";
};
nativeBuildInputs = [ icu ]; # for icu-config, but should be replaced with pkg-config
buildInputs = [ icu ];
checkInputs = [ pytestCheckHook six ];
pythonImportsCheck = [ "icu" ];
meta = with lib; {
homepage = "https://gitlab.pyicu.org/main/pyicu";
description = "Python extension wrapping the ICU C++ API";
changelog = "https://gitlab.pyicu.org/main/pyicu/-/raw/v${version}/CHANGES";
license = licenses.mit;
};
}