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>
39 lines
770 B
Nix
39 lines
770 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
beziers,
|
|
glyphslib,
|
|
numpy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "glyphtools";
|
|
version = "0.8.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-PXwXHWMJbsi6ZtN+daaXAnlw3gV5DFAhyRxdBa7UP+M=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
beziers
|
|
glyphslib
|
|
numpy
|
|
];
|
|
|
|
# A unit test suite does exist, but it only contains a dummy test that
|
|
# imports the library.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "glyphtools" ];
|
|
|
|
meta = {
|
|
description = "Python library for extracting information from font glyphs";
|
|
homepage = "https://github.com/simoncozens/glyphtools";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ danc86 ];
|
|
};
|
|
}
|