nixpkgs/pkgs/development/python-modules/pystache/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

27 lines
702 B
Nix

{ lib, buildPythonPackage, unittestCheckHook, fetchPypi, isPy3k, glibcLocales }:
buildPythonPackage rec {
pname = "pystache";
version = "0.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "93bf92b2149a4c4b58d12142e2c4c6dd5c08d89e4c95afccd4b6efe2ee1d470d";
};
LC_ALL = "en_US.UTF-8";
buildInputs = [ glibcLocales ];
# SyntaxError Python 3
# https://github.com/defunkt/pystache/issues/181
doCheck = !isPy3k;
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;
};
}