nixpkgs/pkgs/development/python-modules/pyicu/default.nix

31 lines
715 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
2021-03-24 19:46:49 +00:00
, pytestCheckHook
, six
, icu
}:
buildPythonPackage rec {
pname = "PyICU";
2021-10-30 11:49:56 +00:00
version = "2.8";
src = fetchPypi {
inherit pname version;
2021-10-30 11:49:56 +00:00
sha256 = "3d80de47045a8163db5aebc947c42b4d429eeea4f0c32af4f40b33981fa872b9";
};
nativeBuildInputs = [ icu ]; # for icu-config, but should be replaced with pkg-config
buildInputs = [ icu ];
2021-03-24 19:46:49 +00:00
checkInputs = [ pytestCheckHook six ];
2021-10-30 11:50:00 +00:00
pythonImportsCheck = [ "icu" ];
meta = with lib; {
2021-10-30 11:50:00 +00:00
homepage = "https://gitlab.pyicu.org/main/pyicu";
description = "Python extension wrapping the ICU C++ API";
2021-10-30 11:50:00 +00:00
changelog = "https://gitlab.pyicu.org/main/pyicu/-/raw/v${version}/CHANGES";
license = licenses.mit;
};
}