33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ lib, buildPythonPackage, fetchPypi, python, pythonOlder
|
|
, fonttools, lxml, fs, unicodedata2
|
|
, defcon, fontpens, fontmath, booleanoperations
|
|
, pytest, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fontParts";
|
|
version = "0.11.0";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-He3BAIWxwDIM80ixmYjyAHlwDK9bBe/qS8P4+TVEkEg=";
|
|
extension = "zip";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
booleanoperations
|
|
fonttools
|
|
unicodedata2 # fonttools[unicode] extra
|
|
lxml # fonttools[lxml] extra
|
|
fs # fonttools[ufo] extra
|
|
defcon
|
|
fontpens # defcon[pens] extra
|
|
fontmath
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} Lib/fontParts/fontshell/test.py
|
|
runHook postCheck
|
|
'';
|
|
nativeCheckInputs = [ pytest ];
|
|
|
|
meta = with lib; {
|
|
description = "An API for interacting with the parts of fonts during the font development process.";
|
|
homepage = "https://github.com/robotools/fontParts";
|
|
changelog = "https://github.com/robotools/fontParts/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
};
|
|
}
|