lol

python3Packages.chevron: modernize

+11 -6
+11 -6
pkgs/development/python-modules/chevron/default.nix
··· 1 1 { 2 - lib, 3 2 buildPythonPackage, 4 3 fetchFromGitHub, 4 + lib, 5 5 python, 6 + setuptools, 6 7 }: 7 8 8 9 buildPythonPackage { 9 10 pname = "chevron"; 10 11 version = "0.14.0-unstable-2021-03-21"; 11 - format = "setuptools"; 12 + pyproject = true; 12 13 13 14 # No tests available in the PyPI tarball 14 15 src = fetchFromGitHub { 15 16 owner = "noahmorrison"; 16 17 repo = "chevron"; 17 18 rev = "5e1c12827b7fc3db30cb3b24cae9a7ee3092822b"; 18 - sha256 = "sha256-44cxkliJJ+IozmhS4ekbb+pCa7tcUuX9tRNYTK0mC+w="; 19 + hash = "sha256-44cxkliJJ+IozmhS4ekbb+pCa7tcUuX9tRNYTK0mC+w="; 19 20 }; 20 21 22 + build-system = [ 23 + setuptools 24 + ]; 25 + 21 26 checkPhase = '' 22 27 ${python.interpreter} test_spec.py 23 28 ''; 24 29 25 - meta = with lib; { 30 + meta = { 26 31 homepage = "https://github.com/noahmorrison/chevron"; 27 32 description = "Python implementation of the mustache templating language"; 28 33 mainProgram = "chevron"; 29 - license = licenses.mit; 30 - maintainers = with maintainers; [ dhkl ]; 34 + license = lib.licenses.mit; 35 + maintainers = with lib.maintainers; [ dhkl ]; 31 36 }; 32 37 }