Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools-scm, 8}: 9 10buildPythonPackage rec { 11 pname = "gemfileparser2"; 12 version = "0.9.3"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-BFKJZOf0W2b0YNbKIwnrmoKGvtP8A6R9PrUt7kYC/Dk="; 20 }; 21 22 dontConfigure = true; 23 24 postPatch = '' 25 # https://github.com/nexB/gemfileparser2/pull/8 26 substituteInPlace setup.cfg \ 27 --replace ">=3.6.*" ">=3.6" 28 ''; 29 30 nativeBuildInputs = [ setuptools-scm ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 pythonImportsCheck = [ "gemfileparser2" ]; 35 36 meta = with lib; { 37 description = "Library to parse Rubygem gemspec and Gemfile files"; 38 homepage = "https://github.com/nexB/gemfileparser2"; 39 changelog = "https://github.com/nexB/gemfileparser2/blob/v${version}/CHANGELOG.rst"; 40 license = with licenses; [ 41 mit # or 42 gpl3Plus 43 ]; 44 maintainers = with maintainers; [ harvidsen ]; 45 }; 46}