mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
staticjinja: 1.0.3 -> 1.0.4
This commit is contained in:
parent
93498b1526
commit
80ea343bf2
@ -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
|
||||
];
|
||||
|
||||
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
|
||||
preCheck = ''
|
||||
export PATH="$PATH:$out/bin";
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user