From 41edb36674f8fc44b0adc72dae678fa6cb0ab88d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 20 Aug 2023 10:27:49 +0200 Subject: [PATCH] python310Packages.pystache: add format - disable on unsupported Python releases --- .../python-modules/pystache/default.nix | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pystache/default.nix b/pkgs/development/python-modules/pystache/default.nix index eea136f0a5c2..3586be89a08c 100644 --- a/pkgs/development/python-modules/pystache/default.nix +++ b/pkgs/development/python-modules/pystache/default.nix @@ -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; [ ]; }; }