567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
33 lines
699 B
Nix
33 lines
699 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "grapheme";
|
|
version = "0.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1jiwc3w05c8kh22s3zk7a8km8na3plqc5zimb2qcyxxy3grbkhj4";
|
|
};
|
|
|
|
# Tests are no available on PyPI
|
|
# https://github.com/alvinlindstam/grapheme/issues/18
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "grapheme" ];
|
|
|
|
meta = {
|
|
description = "Python package for grapheme aware string handling";
|
|
homepage = "https://github.com/alvinlindstam/grapheme";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ creator54 ];
|
|
};
|
|
}
|