nixpkgs/pkgs/applications/office/paperwork/openpaperwork-core.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1002 B
Nix
Raw Normal View History

{ buildPythonPackage
, lib
, fetchFromGitLab
2020-10-31 12:00:00 +00:00
, isPy3k
, isPyPy
2020-10-31 12:00:00 +00:00
, distro
, setuptools
, psutil
, certifi
, setuptools-scm
2020-10-31 12:00:00 +00:00
, pkgs
}:
buildPythonPackage rec {
pname = "openpaperwork-core";
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src;
format = "pyproject";
2020-10-31 12:00:00 +00:00
sourceRoot = "${src.name}/openpaperwork-core";
2020-10-31 12:00:00 +00:00
# Python 2.x is not supported.
disabled = !isPy3k && !isPyPy;
patchPhase = ''
chmod a+w -R ..
patchShebangs ../tools
'';
propagatedBuildInputs = [
distro
setuptools
2021-01-06 12:00:00 +00:00
psutil
certifi
2020-10-31 12:00:00 +00:00
];
nativeBuildInputs = [
pkgs.gettext
pkgs.which
setuptools-scm
];
2020-10-31 12:00:00 +00:00
preBuild = ''
make l10n_compile
'';
preCheck = ''
export HOME=$(mktemp -d)
'';
2020-10-31 12:00:00 +00:00
meta = {
description = "Backend part of Paperwork (Python API, no UI)";
homepage = "https://openpaper.work/";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ aszlig symphorien ];
platforms = lib.platforms.linux;
2020-10-31 12:00:00 +00:00
};
}