depot/third_party/nixpkgs/pkgs/development/python-modules/itanium_demangler/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
720 B
Nix

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