font-v: migrate to pyproject
This commit is contained in:
@@ -6,12 +6,13 @@
|
||||
gitMinimal,
|
||||
gitpython,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "font-v";
|
||||
version = "2.1.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
# PyPI source tarballs omit tests, fetch from Github instead
|
||||
src = fetchFromGitHub {
|
||||
@@ -21,7 +22,9 @@ buildPythonPackage rec {
|
||||
hash = "sha256-ceASyYcNul5aWPAPGajCQrqsQ3bN1sE+nMbCbj7f35w=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
fonttools
|
||||
gitpython
|
||||
];
|
||||
@@ -30,6 +33,7 @@ buildPythonPackage rec {
|
||||
gitMinimal
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# Many tests assume they are running from a git checkout, although they
|
||||
# don't care which one. Create a dummy git repo to satisfy the tests:
|
||||
@@ -38,6 +42,7 @@ buildPythonPackage rec {
|
||||
git config user.name Test
|
||||
git commit --allow-empty --message 'Dummy commit for tests'
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# These tests assume they are actually running from a font-v git checkout,
|
||||
# so just skip them:
|
||||
|
||||
Reference in New Issue
Block a user