diff --git a/pkgs/development/python-modules/glyphslib/default.nix b/pkgs/development/python-modules/glyphslib/default.nix index d4748b6b119a..67cd4093374b 100644 --- a/pkgs/development/python-modules/glyphslib/default.nix +++ b/pkgs/development/python-modules/glyphslib/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , fonttools , openstep-plist , ufoLib2 @@ -16,22 +16,21 @@ buildPythonPackage rec { pname = "glyphslib"; - version = "6.0.6"; + version = "6.0.7"; format = "pyproject"; - src = fetchPypi { - pname = "glyphsLib"; - inherit version; - sha256 = "sha256-F4ev+o6vwDjV2H3z+DrwQZ7VLc1cSIjCWhgY7pcse1M="; + src = fetchFromGitHub { + owner = "googlefonts"; + repo = "glyphsLib"; + rev = "v${version}"; + sha256 = "sha256-PrHK9uEgs0DcNYW6EQ5Qw29CN4R2OcxOHrMeIswsxdA="; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + nativeBuildInputs = [ setuptools-scm ]; - checkInputs = [ pytestCheckHook ]; - - pythonImportsCheck = [ "glyphsLib" ]; - propagatedBuildInputs = [ fonttools openstep-plist @@ -44,6 +43,10 @@ buildPythonPackage rec { skia-pathops ]; + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "glyphsLib" ]; + disabledTestPaths = [ "tests/builder/designspace_gen_test.py" # this test tries to use non-existent font "CoolFoundry Examplary Serif" "tests/builder/interpolation_test.py" # this test tries to use a font that previous test should made