uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
114
pkgs/development/python-modules/pelican/default.nix
Normal file
114
pkgs/development/python-modules/pelican/default.nix
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
{ lib
|
||||
, beautifulsoup4
|
||||
, blinker
|
||||
, buildPythonPackage
|
||||
, docutils
|
||||
, feedgenerator
|
||||
, fetchFromGitHub
|
||||
, git
|
||||
, glibcLocales
|
||||
, jinja2
|
||||
, lxml
|
||||
, markdown
|
||||
, markupsafe
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, pandoc
|
||||
, pillow
|
||||
, pygments
|
||||
, python-dateutil
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, rich
|
||||
, pytest-xdist
|
||||
, six
|
||||
, typogrify
|
||||
, unidecode
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pelican";
|
||||
version = "4.7.2";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "getpelican";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-ZBGzsyCtFt5uj9mpOpGdTzGJET0iwOAgDTy80P6anRU=";
|
||||
# Remove unicode file names which leads to different checksums on HFS+
|
||||
# vs. other filesystems because of unicode normalisation.
|
||||
postFetch = ''
|
||||
rm -r $out/pelican/tests/output/custom_locale/posts
|
||||
'';
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
glibcLocales
|
||||
pandoc
|
||||
git
|
||||
mock
|
||||
markdown
|
||||
typogrify
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
blinker
|
||||
docutils
|
||||
feedgenerator
|
||||
jinja2
|
||||
lxml
|
||||
markupsafe
|
||||
pillow
|
||||
pygments
|
||||
python-dateutil
|
||||
pytz
|
||||
rich
|
||||
six
|
||||
unidecode
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
pandoc
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pelican/tests/test_pelican.py \
|
||||
--replace "'git'" "'${git}/bin/git'"
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
# DeprecationWarning: 'jinja2.Markup' is deprecated and...
|
||||
"-W ignore::DeprecationWarning"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# AssertionError
|
||||
"test_basic_generation_works"
|
||||
"test_custom_generation_works"
|
||||
"test_custom_locale_generation_works"
|
||||
];
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
# We only want to patch shebangs in /bin, and not those
|
||||
# of the project scripts that are created by Pelican.
|
||||
# See https://github.com/NixOS/nixpkgs/issues/30116
|
||||
dontPatchShebangs = true;
|
||||
|
||||
postFixup = ''
|
||||
patchShebangs $out/bin
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "pelican" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Static site generator that requires no database or server-side logic";
|
||||
homepage = "http://getpelican.com/";
|
||||
license = licenses.agpl3;
|
||||
maintainers = with maintainers; [ offline prikhi ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue