at master 846 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools-scm, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "pygmars"; 12 version = "1.0.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.9"; 16 17 src = fetchFromGitHub { 18 owner = "nexB"; 19 repo = "pygmars"; 20 tag = "v${version}"; 21 hash = "sha256-AbBhWR9ycOFrxS7Vz0bSsSyS3FEEm2bXJAvMhIba6XQ="; 22 }; 23 24 dontConfigure = true; 25 26 build-system = [ setuptools-scm ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "pygmars" ]; 31 32 meta = with lib; { 33 description = "Python lexing and parsing library"; 34 homepage = "https://github.com/nexB/pygmars"; 35 changelog = "https://github.com/aboutcode-org/pygmars/blob/${src.tag}/CHANGELOG.rst"; 36 license = with licenses; [ asl20 ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}