lol

python311Packages.jinja2-git: refactor

+10 -1
+10 -1
pkgs/development/python-modules/jinja2-git/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 + , pythonOlder 4 5 , jinja2 5 6 , poetry-core 6 7 }: ··· 8 9 buildPythonPackage rec { 9 10 pname = "jinja2-git"; 10 11 version = "1.3.0"; 11 - format = "pyproject"; 12 + pyproject = true; 13 + 14 + disabled = pythonOlder "3.7"; 12 15 13 16 src = fetchFromGitHub { 14 17 owner = "wemake-services"; ··· 18 21 }; 19 22 20 23 nativeBuildInputs = [ poetry-core ]; 24 + 21 25 propagatedBuildInputs = [ jinja2 ]; 26 + 27 + # the tests need to be run on the git repository 28 + doCheck = false; 29 + 22 30 pythonImportsCheck = [ "jinja2_git" ]; 23 31 24 32 meta = with lib; { 25 33 homepage = "https://github.com/wemake-services/jinja2-git"; 26 34 description = "Jinja2 extension to handle git-specific things"; 35 + changelog = "https://github.com/wemake-services/jinja2-git/blob/${src.rev}/CHANGELOG.md"; 27 36 license = licenses.mit; 28 37 maintainers = with maintainers; [ cpcloud ]; 29 38 };