python310Packages.defcon: update disabled

- add pythonImportsCheck
- switch to pytestCheckHook
This commit is contained in:
Fabian Affolter 2022-08-12 10:31:18 +02:00 committed by GitHub
parent 7761ae9ec0
commit e3884e3c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,17 +1,26 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, fonttools, setuptools-scm
, pytest, pytest-runner, lxml, fs, unicodedata2, fontpens
{ lib
, buildPythonPackage
, fetchPypi
, fontpens
, fonttools
, fs
, lxml
, pytestCheckHook
, pythonOlder
, setuptools-scm
, unicodedata2
}:
buildPythonPackage rec {
pname = "defcon";
version = "0.10.2";
format = "setuptools";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-ruOW5taeRa5lyCZHgTktTCkRaTSyc3rXbYIwtAwYKkQ=";
hash = "sha256-ruOW5taeRa5lyCZHgTktTCkRaTSyc3rXbYIwtAwYKkQ=";
extension = "zip";
};
@ -24,18 +33,21 @@ buildPythonPackage rec {
];
checkInputs = [
pytest
pytest-runner
lxml
fs
unicodedata2
fontpens
fs
lxml
pytestCheckHook
unicodedata2
];
pythonImportsCheck = [
"defcon"
];
meta = with lib; {
description = "A set of UFO based objects for use in font editing applications";
homepage = "https://github.com/robotools/defcon";
license = licenses.mit;
maintainers = [ maintainers.sternenseemann ];
maintainers = with maintainers; [ sternenseemann ];
};
}