python3Packages.itanium_demangler: switch to pytestCheckHook

This commit is contained in:
Fabian Affolter 2022-01-18 21:16:11 +01:00
parent b30d675094
commit f16b4d9172

View File

@ -1,30 +1,36 @@
{ buildPythonPackage
{ lib
, buildPythonPackage
, fetchFromGitHub
, lib
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "itanium_demangler";
pname = "itanium-demangler";
version = "1.0"; # pulled from pypi version
src = fetchFromGitHub {
owner = "whitequark";
repo = "python-${pname}";
repo = "python-itanium_demangler";
rev = "29c77860be48e6dafe3496e4d9d0963ce414e366";
sha256 = "0qm95l6542nk63986w9lgzkxg824l31714i584s02rh9xwfg1xfx";
hash = "sha256-3fXwHO8JZgE0QSWScMKgRKDX5380cYPSMNMKUgwtqWI=";
};
checkInputs = [ pytest ];
checkInputs = [
pytestCheckHook
];
checkPhase = ''
pytest tests/test.py
'';
pytestFlagsArray = [
"tests/test.py"
];
pythonImportsCheck = [
" itanium_demangler "
];
meta = with lib; {
description = "A pure Python parser for the Itanium C++ ABI symbol mangling language";
description = "Python parser for the Itanium C++ ABI symbol mangling language";
homepage = "https://github.com/whitequark/python-itanium_demangler";
license = licenses.bsd0;
maintainers = [ maintainers.pamplemousse ];
maintainers = with maintainers; [ pamplemousse ];
};
}