nixpkgs-suyu/pkgs/development/python-modules/chevron/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

30 lines
667 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:
buildPythonPackage {
pname = "chevron";
version = "0.13.1";
format = "setuptools";
# No tests available in the PyPI tarball
src = fetchFromGitHub {
owner = "noahmorrison";
repo = "chevron";
rev = "0.13.1";
sha256 = "0l1ik8dvi6bgyb3ym0w4ii9dh25nzy0x4yawf4zbcyvvcb6af470";
};
checkPhase = ''
${python.interpreter} test_spec.py
'';
meta = with lib; {
homepage = "https://github.com/noahmorrison/chevron";
description = "A python implementation of the mustache templating language";
license = licenses.mit;
maintainers = with maintainers; [ dhkl ];
};
}