nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 50 lines 984 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchPypi, 6 setuptools-scm, 7 fonttools, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "compreffor"; 13 version = "0.6.0"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-fqA0pQxZzHhzLxSABA6sK7Nvgmzi62B8MCm104qxG6g="; 19 }; 20 21 postPatch = '' 22 sed -i "/setuptools_git_ls_files/d" pyproject.toml 23 ''; 24 25 build-system = [ 26 cython 27 setuptools-scm 28 ]; 29 30 dependencies = [ fonttools ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 preCheck = '' 35 # import from $out 36 mv src/python/compreffor/test . 37 rm -r src tools 38 ''; 39 40 pythonImportsCheck = [ "compreffor" ]; 41 42 meta = { 43 changelog = "https://github.com/googlefonts/compreffor/releases/tag/${version}"; 44 description = "CFF table subroutinizer for FontTools"; 45 mainProgram = "compreffor"; 46 homepage = "https://github.com/googlefonts/compreffor"; 47 license = lib.licenses.asl20; 48 maintainers = [ ]; 49 }; 50}