567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
39 lines
832 B
Nix
39 lines
832 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "itanium-demangler";
|
|
version = "1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "whitequark";
|
|
repo = "python-itanium_demangler";
|
|
tag = "v${version}";
|
|
hash = "sha256-I6NUfckt2cocQt5dZSFadpshTCuA/6bVNauNXypWh+A=";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
enabledTestPaths = [ "tests/test.py" ];
|
|
|
|
pythonImportsCheck = [ "itanium_demangler" ];
|
|
|
|
meta = {
|
|
description = "Python parser for the Itanium C++ ABI symbol mangling language";
|
|
homepage = "https://github.com/whitequark/python-itanium_demangler";
|
|
license = lib.licenses.bsd0;
|
|
maintainers = with lib.maintainers; [
|
|
fab
|
|
pamplemousse
|
|
];
|
|
};
|
|
}
|