python3Packages.chevron: modernize
This commit is contained in:
parent
cb9a1850f8
commit
9db9840a37
@ -1,32 +1,37 @@
|
|||||||
{
|
{
|
||||||
lib,
|
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
lib,
|
||||||
python,
|
python,
|
||||||
|
setuptools,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage {
|
buildPythonPackage {
|
||||||
pname = "chevron";
|
pname = "chevron";
|
||||||
version = "0.14.0-unstable-2021-03-21";
|
version = "0.14.0-unstable-2021-03-21";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
# No tests available in the PyPI tarball
|
# No tests available in the PyPI tarball
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "noahmorrison";
|
owner = "noahmorrison";
|
||||||
repo = "chevron";
|
repo = "chevron";
|
||||||
rev = "5e1c12827b7fc3db30cb3b24cae9a7ee3092822b";
|
rev = "5e1c12827b7fc3db30cb3b24cae9a7ee3092822b";
|
||||||
sha256 = "sha256-44cxkliJJ+IozmhS4ekbb+pCa7tcUuX9tRNYTK0mC+w=";
|
hash = "sha256-44cxkliJJ+IozmhS4ekbb+pCa7tcUuX9tRNYTK0mC+w=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
${python.interpreter} test_spec.py
|
${python.interpreter} test_spec.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/noahmorrison/chevron";
|
homepage = "https://github.com/noahmorrison/chevron";
|
||||||
description = "Python implementation of the mustache templating language";
|
description = "Python implementation of the mustache templating language";
|
||||||
mainProgram = "chevron";
|
mainProgram = "chevron";
|
||||||
license = licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with maintainers; [ dhkl ];
|
maintainers = with lib.maintainers; [ dhkl ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user