Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 44 lines 854 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, setuptools-scm 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "pygmars"; 11 version = "0.8.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "nexB"; 18 repo = pname; 19 rev = "refs/tags/v${version}"; 20 sha256 = "sha256-PiH1lV1Vt9VTSOB+jep8FHIdk8qnauxj4nP3CIi/m7o="; 21 }; 22 23 dontConfigure = true; 24 25 nativeBuildInputs = [ 26 setuptools-scm 27 ]; 28 29 checkInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "pygmars" 35 ]; 36 37 meta = with lib; { 38 description = "Python lexing and parsing library"; 39 homepage = "https://github.com/nexB/pygmars"; 40 changelog = "https://github.com/nexB/pygmars/releases/tag/v${version}"; 41 license = with licenses; [ asl20 ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}