depot/third_party/nixpkgs/pkgs/development/python-modules/itanium-demangler/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

40 lines
825 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";
rev = "v${version}";
hash = "sha256-I6NUfckt2cocQt5dZSFadpshTCuA/6bVNauNXypWh+A=";
};
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"tests/test.py"
];
pythonImportsCheck = [
" itanium_demangler "
];
meta = with lib; {
description = "Python parser for the Itanium C++ ABI symbol mangling language";
homepage = "https://github.com/whitequark/python-itanium_demangler";
license = licenses.bsd0;
maintainers = with maintainers; [ fab pamplemousse ];
};
}