python312Packages.cjkwrap: refactor (#369452)
This commit is contained in:
@@ -1,24 +1,33 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitLab,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cjkwrap";
|
||||
version = "2.2";
|
||||
src = fetchPypi {
|
||||
pname = "CJKwrap";
|
||||
inherit version;
|
||||
sha256 = "1b603sg6c2gv9vmlxwr6r1qvhadqk3qp6vifmijris504zjx5ix2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "fgallaire";
|
||||
repo = "cjkwrap";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-0wTx3rnlUfQEE2/Z8Y7iwlsHk+CIy6ut+QIpC5yg4aM=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
pythonImportsCheck = [ "cjkwrap" ];
|
||||
|
||||
meta = with lib; {
|
||||
# no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Library for wrapping and filling CJK text";
|
||||
homepage = "https://f.gallai.re/cjkwrap";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = [ maintainers.kaction ];
|
||||
license = lib.licenses.lgpl3Plus;
|
||||
maintainers = [ lib.maintainers.kaction ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user