nixpkgs/pkgs/development/python-modules/pyicu/default.nix
Vladimír Čunát 2bebc577d8
python3Packages.PyICU: 2.8.1 -> 2.9
https://gitlab.pyicu.org/main/pyicu/-/blob/v2.9/CHANGES
The important bit is support for ICU 71.1; otherwise tests failed.
2022-05-07 09:02:26 +02:00

31 lines
702 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, six
, icu
}:
buildPythonPackage rec {
pname = "PyICU";
version = "2.9";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-PCnWzmVUYVcReho0ejA+zfzxp1ke1nn8iM3vQQiEWHg=";
};
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;
};
}