commit
8e01330277
@ -1,6 +1,6 @@ |
||||
{ mkDerivation , extra-cmake-modules }: |
||||
|
||||
mkDerivation { |
||||
name = "plasma-workspace-wallpapers"; |
||||
pname = "plasma-workspace-wallpapers"; |
||||
nativeBuildInputs = [ extra-cmake-modules ]; |
||||
} |
||||
|
@ -1,18 +1,35 @@ |
||||
{ lib, buildPythonPackage, fetchPypi }: |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "pylru"; |
||||
version = "1.2.0"; |
||||
version = "1.2.1"; |
||||
format = "setuptools"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "492f934bb98dc6c8b2370c02c95c65516ddc08c8f64d27f70087eb038621d297"; |
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "jlhutch"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-dTYiD+/zt0ZSP+sefYyeD87To1nRXyoFodlBg8pm1YE="; |
||||
}; |
||||
|
||||
# Check with the next release if tests are ready |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ |
||||
"pylru" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/jlhutch/pylru"; |
||||
description = "A least recently used (LRU) cache implementation"; |
||||
license = licenses.gpl2; |
||||
homepage = "https://github.com/jlhutch/pylru"; |
||||
license = licenses.gpl2Only; |
||||
maintainers = with maintainers; [ abbradar ]; |
||||
}; |
||||
} |
||||
|
@ -0,0 +1,69 @@ |
||||
{ buildPythonApplication |
||||
, fetchPypi |
||||
, pandocfilters |
||||
, panflute |
||||
, lib |
||||
, pandoc |
||||
, pandoc-acro |
||||
, texlive |
||||
, runCommand |
||||
}: |
||||
|
||||
let |
||||
pname = "pandoc-acro"; |
||||
version = "0.10.1"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "sha256-JMfSQXX+BCGdFQYPFB+r08WRnhT3aXfnBNINROxCUA0="; |
||||
}; |
||||
in |
||||
buildPythonApplication { |
||||
inherit pname version src; |
||||
|
||||
propagatedBuildInputs = [ |
||||
pandocfilters |
||||
panflute |
||||
]; |
||||
|
||||
# Something in the tests does not typecheck, but the tool works well. |
||||
doCheck = false; |
||||
|
||||
passthru.tests.example-doc = |
||||
let |
||||
env = { |
||||
nativeBuildInputs = [ |
||||
pandoc |
||||
pandoc-acro |
||||
(texlive.combine { |
||||
inherit (texlive) |
||||
scheme-tetex |
||||
acro |
||||
translations |
||||
; |
||||
}) |
||||
]; |
||||
}; |
||||
in |
||||
runCommand "pandoc-acro-example-docs" env '' |
||||
set -euo pipefail |
||||
exampleFile="${pname}-${version}/tests/example.md" |
||||
metadataFile="${pname}-${version}/tests/metadata.yaml" |
||||
tar --extract "--file=${src}" "$exampleFile" "$metadataFile" |
||||
mkdir $out |
||||
|
||||
pandoc -F pandoc-acro "$exampleFile" "--metadata-file=$metadataFile" \ |
||||
-T pdf -o $out/example.pdf |
||||
pandoc -F pandoc-acro "$exampleFile" "--metadata-file=$metadataFile" \ |
||||
-T txt -o $out/example.txt |
||||
|
||||
! grep -q "\+afaik" $out/example.txt |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://pypi.org/project/pandoc-acro/"; |
||||
description = "Pandoc filter which manages acronyms in Pandoc flavored Markdown sources"; |
||||
license = licenses.bsd2; |
||||
maintainers = with maintainers; [ tfc ]; |
||||
}; |
||||
} |
@ -1,4 +1,4 @@ |
||||
# frozen_string_literal: true |
||||
source "https://rubygems.org" |
||||
|
||||
gem "metasploit-framework", git: "https://github.com/rapid7/metasploit-framework", ref: "refs/tags/6.1.31" |
||||
gem "metasploit-framework", git: "https://github.com/rapid7/metasploit-framework", ref: "refs/tags/6.1.32" |
||||
|
Loading…
Reference in new issue