python310Packages.pystache: add format

- disable on unsupported Python releases
This commit is contained in:
Fabian Affolter
2023-08-20 10:27:49 +02:00
committed by GitHub
parent 5c0f7fc6c1
commit 41edb36674
@@ -1,27 +1,37 @@
{ lib, buildPythonPackage, unittestCheckHook, fetchPypi, isPy3k, glibcLocales }:
{ lib
, buildPythonPackage
, unittestCheckHook
, fetchPypi
, pythonOlder
, glibcLocales
}:
buildPythonPackage rec {
pname = "pystache";
version = "0.6.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-4CkCIzBJsW4L4alPDHOJ6AViX2c1eD9FM7AgtaOKJ8c=";
hash = "sha256-4CkCIzBJsW4L4alPDHOJ6AViX2c1eD9FM7AgtaOKJ8c=";
};
LC_ALL = "en_US.UTF-8";
buildInputs = [ glibcLocales ];
buildInputs = [
glibcLocales
];
# SyntaxError Python 3
# https://github.com/defunkt/pystache/issues/181
doCheck = !isPy3k;
nativeCheckInputs = [ unittestCheckHook ];
nativeCheckInputs = [
unittestCheckHook
];
meta = with lib; {
description = "A framework-agnostic, logic-free templating system inspired by ctemplate and et";
homepage = "https://github.com/defunkt/pystache";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}