Merge pull request #112568 from fgaz/staticjinja/1.0.4

staticjinja: 1.0.3 -> 1.0.4
This commit is contained in:
Sandro 2021-02-10 09:18:42 +01:00 committed by GitHub
commit 339dc1ff1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,33 +1,35 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, poetry
, isPy27
, docopt
, easywatch
, jinja2
, pytestCheckHook
, pytest-check
, fetchPypi
, markdown
, sphinx
, sphinx_rtd_theme
}:
buildPythonPackage rec {
pname = "staticjinja";
version = "1.0.3";
version = "1.0.4";
format = "pyproject";
disabled = isPy27; # 0.4.0 drops python2 support
# For some reason, in pypi the tests get disabled when using
# PY_IGNORE_IMPORTMISMATCH, so we just fetch from GitHub
# No tests in pypi
src = fetchFromGitHub {
owner = "staticjinja";
repo = pname;
rev = version;
sha256 = "12rpv5gv64i5j4w98wm1444xnnmarcn3pg783j3fkkzc58lk5wwj";
sha256 = "1saz6f71s693gz9c2k3bq2di2mrkj65mgmfdg86jk0z0zzjk90y1";
};
nativeBuildInputs = [
poetry
];
propagatedBuildInputs = [
jinja2
docopt
@ -38,15 +40,10 @@ buildPythonPackage rec {
pytestCheckHook
pytest-check
markdown
sphinx_rtd_theme
sphinx
];
# The tests need to find and call the installed staticjinja executable
preCheck = ''
# Import paths differ by a "build/lib" subdirectory, but the files are
# the same, so we ignore import mismatches.
export PY_IGNORE_IMPORTMISMATCH=1
# The tests need to find and call the installed staticjinja executable
export PATH="$PATH:$out/bin";
'';