mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
krop: 0.6.0 -> 0.7.0
Diff: https://github.com/arminstraub/krop/compare/v0.6.0...v0.7.0
This commit is contained in:
parent
7064665800
commit
2d13c1de80
1 changed files with 13 additions and 37 deletions
|
@ -1,62 +1,38 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
python3Packages,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
python3,
|
|
||||||
libsForQt5,
|
libsForQt5,
|
||||||
ghostscript,
|
ghostscript,
|
||||||
qt5,
|
|
||||||
fetchPypi,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
python3Packages.buildPythonApplication rec {
|
||||||
py = python3.override {
|
|
||||||
self = py;
|
|
||||||
packageOverrides = self: super: {
|
|
||||||
# Can be removed once this is merged
|
|
||||||
# https://github.com/arminstraub/krop/pull/40
|
|
||||||
pypdf2 = super.pypdf2.overridePythonAttrs (oldAttrs: rec {
|
|
||||||
version = "2.12.1";
|
|
||||||
src = fetchPypi {
|
|
||||||
pname = "PyPDF2";
|
|
||||||
inherit version;
|
|
||||||
hash = "sha256-4D7xirzHXadBoKzBp3SSU0loh744zZiHvM4c7jk9pF4=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
|
|
||||||
py.pkgs.buildPythonApplication rec {
|
|
||||||
pname = "krop";
|
pname = "krop";
|
||||||
version = "0.6.0";
|
version = "0.7.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "arminstraub";
|
owner = "arminstraub";
|
||||||
repo = pname;
|
repo = "krop";
|
||||||
rev = "v${version}";
|
tag = "v${version}";
|
||||||
sha256 = "1ygzc7vlwszqmsd3v1dsqp1dpsn6inx7g8gck63alvf88dbn8m3s";
|
hash = "sha256-8mhTUP0oS+AnZXVmywxBTbR1OOg18U0RQ1H9lyjaiVI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with py.pkgs; [
|
nativeBuildInputs = [ libsForQt5.wrapQtAppsHook ];
|
||||||
pyqt5
|
|
||||||
pypdf2
|
|
||||||
poppler-qt5
|
|
||||||
ghostscript
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libsForQt5.poppler
|
libsForQt5.poppler
|
||||||
libsForQt5.qtwayland
|
libsForQt5.qtwayland
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
|
dependencies = with python3Packages; [
|
||||||
|
pyqt5
|
||||||
|
pypdf2
|
||||||
|
poppler-qt5
|
||||||
|
ghostscript
|
||||||
|
];
|
||||||
|
|
||||||
makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ];
|
makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ];
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
install -m666 -Dt $out/share/applications krop.desktop
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Disable checks because of interference with older Qt versions // xcb
|
# Disable checks because of interference with older Qt versions // xcb
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue