at master 818 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 commandlines, 6 fonttools, 7 fs, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "ufolint"; 13 version = "1.2.0"; 14 format = "setuptools"; 15 16 # PyPI source tarballs omit tests, fetch from Github instead 17 src = fetchFromGitHub { 18 owner = "source-foundry"; 19 repo = "ufolint"; 20 rev = "v${version}"; 21 hash = "sha256-sv8WbnDd2LFHkwNsB9FO04OlLhemdzwjq0tC9+Fd6/M="; 22 }; 23 24 propagatedBuildInputs = [ 25 commandlines 26 fs 27 fonttools 28 ]; 29 30 nativeBuildInputs = [ pytestCheckHook ]; 31 32 meta = with lib; { 33 description = "Linter for Unified Font Object (UFO) source code"; 34 mainProgram = "ufolint"; 35 homepage = "https://github.com/source-foundry/ufolint"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ danc86 ]; 38 }; 39}