42 lines
827 B
Nix
42 lines
827 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
beziers,
|
|
glyphslib,
|
|
numpy,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "glyphtools";
|
|
version = "0.8.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) pname version;
|
|
hash = "sha256-PXwXHWMJbsi6ZtN+daaXAnlw3gV5DFAhyRxdBa7UP+M=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
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 ];
|
|
};
|
|
})
|