depot/third_party/nixpkgs/pkgs/development/python-modules/glyphtools/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
936 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
beziers,
glyphslib,
numpy,
setuptoolsCheckHook,
}:
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
# doesn't test anything. It does import the module though so we still run it.
doCheck = true;
nativeCheckInputs = [
# Upstream apparently prefers the deprecated setuptools 'test' command.
setuptoolsCheckHook
];
meta = with lib; {
description = "Python library for extracting information from font glyphs";
homepage = "https://github.com/simoncozens/glyphtools";
license = licenses.asl20;
maintainers = with maintainers; [ danc86 ];
};
}