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
71
pkgs/development/python-modules/arelle/default.nix
Normal file
71
pkgs/development/python-modules/arelle/default.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ gui ? true,
|
||||
buildPythonPackage, fetchFromGitHub, lib,
|
||||
sphinx, lxml, isodate, numpy, openpyxl,
|
||||
tkinter ? null, py3to2, isPy3k, python,
|
||||
... }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "arelle${lib.optionalString (!gui) "-headless"}";
|
||||
version = "18.3";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
# Releases are published at http://arelle.org/download/ but sadly no
|
||||
# tags are published on github.
|
||||
src = fetchFromGitHub {
|
||||
owner = "Arelle";
|
||||
repo = "Arelle";
|
||||
rev = "edgr${version}";
|
||||
sha256 = "12a94ipdp6xalqyds7rcp6cjwps6fbj3byigzfy403hlqc9n1g33";
|
||||
};
|
||||
outputs = ["out" "doc"];
|
||||
patches = [
|
||||
./tests.patch
|
||||
];
|
||||
postPatch = "rm testParser2.py";
|
||||
nativeBuildInputs = [
|
||||
sphinx
|
||||
py3to2
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
lxml
|
||||
isodate
|
||||
numpy
|
||||
openpyxl
|
||||
] ++ lib.optionals gui [
|
||||
tkinter
|
||||
];
|
||||
|
||||
# arelle-gui is useless without gui dependencies, so delete it when !gui.
|
||||
postInstall = lib.optionalString (!gui) ''
|
||||
find $out/bin -name "*arelle-gui*" -delete
|
||||
'' +
|
||||
# By default, not the entirety of the src dir is copied. This means we don't
|
||||
# copy the `images` dir, which is needed for the gui version.
|
||||
lib.optionalString (gui) ''
|
||||
targetDir=$out/${python.sitePackages}
|
||||
cp -vr $src/arelle $targetDir
|
||||
'';
|
||||
|
||||
# Documentation
|
||||
postBuild = ''
|
||||
(cd apidocs && make html && cp -r _build $doc)
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = ''
|
||||
An open source facility for XBRL, the eXtensible Business Reporting
|
||||
Language supporting various standards, exposed through a Python or
|
||||
REST API'' + lib.optionalString gui " and a graphical user interface";
|
||||
homepage = "http://arelle.org/";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ roberth ];
|
||||
};
|
||||
}
|
||||
14
pkgs/development/python-modules/arelle/tests.patch
Normal file
14
pkgs/development/python-modules/arelle/tests.patch
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
diff --git c/arelle/CntlrProfiler.py i/arelle/CntlrProfiler.py
|
||||
index a64bb1b..dc0299d 100644
|
||||
--- c/arelle/CntlrProfiler.py
|
||||
+++ i/arelle/CntlrProfiler.py
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
-import Cntlr, ModelManager, FileSource, time
|
||||
+from arelle import Cntlr, ModelManager, FileSource
|
||||
+import time
|
||||
from optparse import OptionParser
|
||||
import cProfile
|
||||
import gettext
|
||||
diff --git c/arelle/ValidateFilingText.py i/arelle/ValidateFilingText.py
|
||||
index 12dbbbb..c0e98c3 100644
|
||||
Loading…
Add table
Add a link
Reference in a new issue