Merge staging-next into staging
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, lief
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "autoit-ripper";
|
||||
version = "1.0.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0mbsrfa72n7y1vkm9jhwhn1z3k45jxrlgx58ia1l2bp6chnnn2zy";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
lief
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt --replace "lief==0.10.1" "lief>=0.10.1"
|
||||
'';
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "autoit_ripper" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to extract AutoIt scripts embedded in PE binaries";
|
||||
homepage = "https://github.com/nazywam/AutoIt-Ripper";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
||||
, setuptools-scm
|
||||
, beancount
|
||||
, pytest, sh
|
||||
}:
|
||||
@@ -14,6 +15,10 @@ buildPythonPackage rec {
|
||||
sha256 = "1kjc0axrxpvm828lqq5m2ikq0ls8xksbmm7312zw867gdx56x5aj";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beancount
|
||||
];
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
, pytest-mock
|
||||
, pytz
|
||||
, snapshottest
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -24,6 +25,13 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-bVCCLPnV5F8PqLMg3GwcpwpGldrxsU+WryL6gj6y338=";
|
||||
};
|
||||
|
||||
# Allow later aniso8601 releases
|
||||
# https://github.com/graphql-python/graphene/pull/1331
|
||||
patches = [ (fetchpatch {
|
||||
url = "https://github.com/graphql-python/graphene/commit/26b16f75b125e35eeb2274b7be503ec29f2e8a45.patch";
|
||||
sha256 = "qm96pNOoxPieEy1CFZpa2Mx010pY3QU/vRyuL0qO3Tk=";
|
||||
}) ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aniso8601
|
||||
graphql-core
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
{ lib
|
||||
, autoit-ripper
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, karton-core
|
||||
, malduck
|
||||
, regex
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "karton-autoit-ripper";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CERT-Polska";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0vdsxkbjcr0inpcfjh45gl72ipzklkhgs06fdpkyy9y0cfx3zq7z";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
autoit-ripper
|
||||
karton-core
|
||||
malduck
|
||||
regex
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "autoit-ripper==1.0.0" "autoit-ripper" \
|
||||
--replace "karton.core==4.0.4" "karton-core" \
|
||||
--replace "malduck==3.1.0" "malduck>=3.1.0" \
|
||||
--replace "regex==2020.2.20" "regex>=2020.2.20"
|
||||
'';
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "karton.autoit_ripper" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "AutoIt script ripper for Karton framework";
|
||||
homepage = "https://github.com/CERT-Polska/karton-autoit-ripper";
|
||||
license = with licenses; [ bsd3 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -1,44 +1,64 @@
|
||||
{ buildPythonPackage, fetchPypi, lib, sip, qtbase, pyqt5, poppler, pkg-config, fetchpatch
|
||||
, substituteAll
|
||||
{ stdenv
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, fetchPypi
|
||||
, pythonPackages
|
||||
, sip_5
|
||||
, qtbase
|
||||
, qmake
|
||||
, pyqt5
|
||||
, pyqt-builder
|
||||
, poppler
|
||||
, pkg-config
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-poppler-qt5";
|
||||
version = "0.24.2";
|
||||
version = "21.1.0";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0l69llw1fzwz8y90q0qp9q5pifbrqjjbwii7di54dwghw5fc6w1r";
|
||||
sha256 = "0b82gm4i75q5v19kfbq0h4y0b2vcwr2213zkhxh6l0h45kdndmxd";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./poppler-include-dir.patch;
|
||||
poppler_include_dir = "${poppler.dev}/include/poppler";
|
||||
})
|
||||
# Fix for https://github.com/frescobaldi/python-poppler-qt5/issues/43 (from PR #45)
|
||||
(fetchpatch {
|
||||
url = "https://github.com/wbsoft/python-poppler-qt5/commit/faf4d1308f89560b0d849671226e3080dfc72e79.patch";
|
||||
sha256 = "18krhh6wzsnpxzlzv02nginb1vralla8ai24zqk10nc4mj6fkj86";
|
||||
url = "https://github.com/frescobaldi/python-poppler-qt5/commit/40e71ad88173d02648bceb2438bc0567e60dacd5.patch";
|
||||
sha256 = "0c93d0k7b1n2s2njl8g92x6vw3z96da1fczah9qx07x08iw8dzi5";
|
||||
})
|
||||
];
|
||||
|
||||
setupPyBuildFlags = [
|
||||
"--pyqt-sip-dir ${pyqt5}/share/sip/PyQt5"
|
||||
"--qt-include-dir ${qtbase.dev}/include"
|
||||
];
|
||||
buildInputs = [ qtbase.dev poppler pyqt-builder ];
|
||||
nativeBuildInputs = [ pkg-config qmake sip_5 ];
|
||||
propagatedBuildInputs = [ pyqt5.dev ];
|
||||
|
||||
buildInputs = [ qtbase.dev poppler ];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
propagatedBuildInputs = [ sip pyqt5.dev ];
|
||||
format = "pyproject";
|
||||
dontConfigure = true;
|
||||
|
||||
postPatch = ''
|
||||
cat <<EOF >> pyproject.toml
|
||||
sip-include-dirs = ["${pyqt5}/share/sip/PyQt5"]
|
||||
|
||||
[tool.sip.bindings.Poppler-Qt5]
|
||||
include-dirs = ["${poppler.dev}/include/poppler"]
|
||||
tags = ["${sip_5.platform_tag}"]
|
||||
EOF
|
||||
'';
|
||||
|
||||
# no tests, just bindings for `poppler_qt5`
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "popplerqt5" ];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/wbsoft/python-poppler-qt5";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ ];
|
||||
homepage = "https://github.com/frescobaldi/python-poppler-qt5";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ eduardosm ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 59a75b0..0a73268 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -169,6 +169,7 @@ class build_ext(build_ext_base):
|
||||
'Please specify via --pyqt-sip-flags=')
|
||||
|
||||
self.include_dirs += (self.qt_include_dir,
|
||||
+ '@poppler_include_dir@',
|
||||
os.path.join(self.qt_include_dir, 'QtCore'),
|
||||
os.path.join(self.qt_include_dir, 'QtGui'),
|
||||
os.path.join(self.qt_include_dir, 'QtXml'))
|
||||
Reference in New Issue
Block a user