1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, setuptools-scm 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "pygmars"; 11 version = "0.7.0"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "nexB"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "0wghk4nzplpl26iwrgvm0n9x88nyxlcxz4ywss4nwdr4hfccl28l"; 20 }; 21 22 dontConfigure = true; 23 24 nativeBuildInputs = [ 25 setuptools-scm 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ 33 "pygmars" 34 ]; 35 36 meta = with lib; { 37 description = "Python lexing and parsing library"; 38 homepage = "https://github.com/nexB/pygmars"; 39 license = with licenses; [ asl20 ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}