staticjinja: 1.0.3 -> 1.0.4
This commit is contained in:
parent
93498b1526
commit
80ea343bf2
@ -1,33 +1,35 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, poetry
|
||||||
, isPy27
|
, isPy27
|
||||||
, docopt
|
, docopt
|
||||||
, easywatch
|
, easywatch
|
||||||
, jinja2
|
, jinja2
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytest-check
|
, pytest-check
|
||||||
, fetchPypi
|
|
||||||
, markdown
|
, markdown
|
||||||
, sphinx
|
|
||||||
, sphinx_rtd_theme
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "staticjinja";
|
pname = "staticjinja";
|
||||||
version = "1.0.3";
|
version = "1.0.4";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = isPy27; # 0.4.0 drops python2 support
|
disabled = isPy27; # 0.4.0 drops python2 support
|
||||||
|
|
||||||
# For some reason, in pypi the tests get disabled when using
|
# No tests in pypi
|
||||||
# PY_IGNORE_IMPORTMISMATCH, so we just fetch from GitHub
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "staticjinja";
|
owner = "staticjinja";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "12rpv5gv64i5j4w98wm1444xnnmarcn3pg783j3fkkzc58lk5wwj";
|
sha256 = "1saz6f71s693gz9c2k3bq2di2mrkj65mgmfdg86jk0z0zzjk90y1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
jinja2
|
jinja2
|
||||||
docopt
|
docopt
|
||||||
@ -38,15 +40,10 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-check
|
pytest-check
|
||||||
markdown
|
markdown
|
||||||
sphinx_rtd_theme
|
|
||||||
sphinx
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# The tests need to find and call the installed staticjinja executable
|
||||||
preCheck = ''
|
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";
|
export PATH="$PATH:$out/bin";
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user