depot/third_party/nixpkgs/pkgs/development/python-modules/pyicu/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

36 lines
767 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
six,
icu,
}:
buildPythonPackage rec {
pname = "pyicu";
version = "2.13.1";
format = "setuptools";
src = fetchPypi {
pname = "PyICU";
inherit version;
hash = "sha256-1JGQheqgfaErrejuch57v3reAVHKD4KUaibI9LmM3Os=";
};
nativeBuildInputs = [ icu ]; # for icu-config, but should be replaced with pkg-config
buildInputs = [ icu ];
nativeCheckInputs = [
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;
};
}