diff options
Diffstat (limited to 'pkgs/development/python-modules/arelle/default.nix')
-rw-r--r-- | pkgs/development/python-modules/arelle/default.nix | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/arelle/default.nix b/pkgs/development/python-modules/arelle/default.nix index 862564dbcd1..78cd2fca837 100644 --- a/pkgs/development/python-modules/arelle/default.nix +++ b/pkgs/development/python-modules/arelle/default.nix @@ -1,13 +1,12 @@ { gui ? true, buildPythonPackage, fetchFromGitHub, lib, - sphinx_1_2, lxml, isodate, numpy, pytest, - tkinter ? null, py3to2, isPy3k, + sphinx, lxml, isodate, numpy, pytest, openpyxl, + tkinter ? null, py3to2, isPy3k, python, ... }: buildPythonPackage rec { - pname = "arelle-${version}${lib.optionalString (!gui) "-headless"}"; - version = "2017-08-24"; - name = pname + "-" + version; + pname = "arelle${lib.optionalString (!gui) "-headless"}"; + version = "18.3"; disabled = !isPy3k; @@ -16,8 +15,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Arelle"; repo = "Arelle"; - rev = "cb24e35d57b562a864ae3dd4542c4d9fcf3865fe"; - sha256 = "1sbvhb3xlfnyvf1xj9dxwpcrfiaf7ikkdwvvap7aaxfxgiz85ip2"; + rev = "edgr${version}"; + sha256 = "12a94ipdp6xalqyds7rcp6cjwps6fbj3byigzfy403hlqc9n1g33"; }; outputs = ["out" "doc"]; patches = [ @@ -25,7 +24,7 @@ buildPythonPackage rec { ]; postPatch = "rm testParser2.py"; buildInputs = [ - sphinx_1_2 + sphinx pytest py3to2 ]; @@ -33,6 +32,7 @@ buildPythonPackage rec { lxml isodate numpy + openpyxl ] ++ lib.optional gui [ tkinter ]; @@ -40,6 +40,12 @@ buildPythonPackage rec { # 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 @@ -49,11 +55,14 @@ buildPythonPackage rec { doCheck = if gui then true else false; - meta = { - 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"; + 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 = lib.licenses.asl20; - platforms = lib.platforms.all; - maintainers = with lib.maintainers; [ roberth ]; + license = licenses.asl20; + platforms = platforms.all; + maintainers = with maintainers; [ roberth ]; }; } |