python3Packages.itanium_demangler: switch to pytestCheckHook
This commit is contained in:
parent
b30d675094
commit
f16b4d9172
@ -1,30 +1,36 @@
|
|||||||
{ buildPythonPackage
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, lib
|
, pytestCheckHook
|
||||||
, pytest
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "itanium_demangler";
|
pname = "itanium-demangler";
|
||||||
version = "1.0"; # pulled from pypi version
|
version = "1.0"; # pulled from pypi version
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "whitequark";
|
owner = "whitequark";
|
||||||
repo = "python-${pname}";
|
repo = "python-itanium_demangler";
|
||||||
rev = "29c77860be48e6dafe3496e4d9d0963ce414e366";
|
rev = "29c77860be48e6dafe3496e4d9d0963ce414e366";
|
||||||
sha256 = "0qm95l6542nk63986w9lgzkxg824l31714i584s02rh9xwfg1xfx";
|
hash = "sha256-3fXwHO8JZgE0QSWScMKgRKDX5380cYPSMNMKUgwtqWI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
pytestFlagsArray = [
|
||||||
pytest tests/test.py
|
"tests/test.py"
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
" itanium_demangler "
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
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";
|
homepage = "https://github.com/whitequark/python-itanium_demangler";
|
||||||
license = licenses.bsd0;
|
license = licenses.bsd0;
|
||||||
maintainers = [ maintainers.pamplemousse ];
|
maintainers = with maintainers; [ pamplemousse ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user