Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.defusedxml: 0.6.0 -> 0.7.0 #115251

Merged
merged 2 commits into from Mar 7, 2021

Conversation

fabaff
Copy link
Member

@fabaff fabaff commented Mar 6, 2021

Motivation for this change

Update to latest upstream release 0.7.0

Add meta.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 115251 run on x86_64-linux 1

1 package built:
  • home-assistant

@SuperSandro2000
Copy link
Member

/rebase staging-next

@github-actions github-actions bot changed the base branch from master to staging-next March 6, 2021 18:40
@github-actions github-actions bot closed this Mar 6, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2021

Rebased, please reopen the pull request to restart CI

@SuperSandro2000
Copy link
Member

/rebase master

@github-actions github-actions bot changed the base branch from staging-next to master March 7, 2021 02:48
@github-actions github-actions bot closed this Mar 7, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2021

Rebased, please reopen the pull request to restart CI

sha256 = "183fz8xwclhkirwpvpldyypn47r8lgzfz2mk9jgyg7b37jg5vcc6";
};

pythonImportsCheck = [ "defusedxml" ];
Copy link
Member

@mweinelt mweinelt Mar 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enable tests by passing tests.py to the pytestCheckHook.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff --git a/pkgs/development/python-modules/defusedxml/default.nix b/pkgs/development/python-modules/defusedxml/default.nix
index 3abdd0fb792..ef1ba91d45c 100644
--- a/pkgs/development/python-modules/defusedxml/default.nix
+++ b/pkgs/development/python-modules/defusedxml/default.nix
@@ -2,6 +2,7 @@
 , buildPythonPackage
 , fetchPypi
 , pythonOlder
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
@@ -14,6 +15,8 @@ buildPythonPackage rec {
     sha256 = "183fz8xwclhkirwpvpldyypn47r8lgzfz2mk9jgyg7b37jg5vcc6";
   };
 
+  checkInputs = [ pytestCheckHook ];
+
   pythonImportsCheck = [ "defusedxml" ];
 
   meta = with lib; {
=========================== short test summary info ============================
FAILED tests.py::BaseTests::test_allow_expansion - AttributeError: 'BaseTests...
FAILED tests.py::BaseTests::test_dtd_forbidden - AttributeError: 'BaseTests' ...
FAILED tests.py::BaseTests::test_dtd_with_external_ref - AttributeError: 'Bas...
FAILED tests.py::BaseTests::test_entities_forbidden - AttributeError: 'BaseTe...
FAILED tests.py::BaseTests::test_entity_cycle - AttributeError: 'BaseTests' o...
FAILED tests.py::BaseTests::test_external_file_ref - AttributeError: 'BaseTes...
FAILED tests.py::BaseTests::test_external_ref - AttributeError: 'BaseTests' o...
FAILED tests.py::BaseTests::test_simple_parse - AttributeError: 'BaseTests' o...
FAILED tests.py::BaseTests::test_simple_parse_ns - AttributeError: 'BaseTests...
FAILED tests.py::TestDefusedElementTree::test_html_arg - AssertionError: Depr...
FAILED tests.py::TestDefusedcElementTree::test_html_arg - AssertionError: Dep...
FAILED tests.py::TestDefusedLxml::test_allow_expansion - TypeError: catching ...
FAILED tests.py::TestDefusedLxml::test_dtd_forbidden - TypeError: catching cl...
FAILED tests.py::TestDefusedLxml::test_dtd_with_external_ref - TypeError: cat...
FAILED tests.py::TestDefusedLxml::test_entities_forbidden - TypeError: catchi...
FAILED tests.py::TestDefusedLxml::test_entity_cycle - TypeError: assertRaises...
FAILED tests.py::TestDefusedLxml::test_lxml_warnings - AssertionError: None i...
FAILED tests.py::TestDefusedLxml::test_restricted_element1 - TypeError: catch...
FAILED tests.py::TestDefusedLxml::test_restricted_element2 - TypeError: catch...
FAILED tests.py::TestDefusedLxml::test_simple_parse - TypeError: catching cla...
FAILED tests.py::TestDefusedLxml::test_simple_parse_ns - TypeError: catching ...
FAILED tests.py::TestDefusedLxml::test_xpath_injection - AttributeError: 'Non...
================== 22 failed, 67 passed, 2 warnings in 0.91s ===================

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and the tests fail with lots of type errors.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, I'm a bit baffled why you merge this anyway. The tests are working upstream.

https://github.com/tiran/defusedxml/runs/2029830851

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SuperSandro2000, made the requested changes in a new PR #115341

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 115251 run on x86_64-linux 1

7 packages marked as broken and skipped:
  • ihaskell
  • python38Packages.optuna
  • python38Packages.pymc3
  • python38Packages.skein
  • python38Packages.skorch
  • python38Packages.textacy
  • python39Packages.skein
23 packages failed to build and already failed to build on hydra master:
  • ansible-lint: log was empty
  • (python38Packages.ansible-lint): log was empty
  • apache-airflow: log was empty
  • etesync-dav: log was empty
  • mailman-web: log was empty
  • (python38Packages.mailman-web): log was empty
  • python38Packages.flask-appbuilder: log was empty
  • python38Packages.gradient: log was empty
  • python38Packages.gradient-utils: log was empty
  • python38Packages.hyperkitty: log was empty
  • python38Packages.jupyterlab-git: log was empty
  • python38Packages.nbdime: log was empty
  • python38Packages.pywick: log was empty
  • python38Packages.shap: log was empty
  • spyder: log was empty
  • (python38Packages.spyder): log was empty
  • python38Packages.sunpy: log was empty
  • python39Packages.flask-appbuilder: log was empty
  • python39Packages.hyperkitty: log was empty
  • python39Packages.jupyterlab-git: log was empty
  • python39Packages.mailman-web: log was empty
  • python39Packages.nbdime: log was empty
  • s3ql: log was empty
1 package failed to build and are new build failure:
  • python38Packages.datashader: log was empty
243 packages built:
  • aiodnsbrute
  • backblaze-b2
  • calibre
  • check_systemd
  • checkov
  • conan
  • cq-editor
  • deja-dup
  • devpi-client
  • devpi-server
  • diffoscope
  • duplicity
  • duply
  • evdevremapkeys
  • evillimiter
  • fdroidserver
  • ffmpeg-normalize
  • gdown (python38Packages.gdown)
  • gnome-keysign
  • home-assistant
  • img2pdf (python38Packages.img2pdf)
  • jellyfin-mpv-shim
  • jira-cli
  • jupyter
  • kaggle (python38Packages.kaggle)
  • keepkey_agent (python38Packages.keepkey_agent)
  • ldeep
  • ledger_agent (python38Packages.ledger_agent)
  • lexicon
  • lieer
  • luigi
  • magic-wormhole (python38Packages.magic-wormhole)
  • manim
  • mathlibtools (python38Packages.mathlibtools)
  • matrix-synapse
  • mirage-im
  • mnemosyne
  • noto-fonts-emoji
  • nrfutil
  • ocrfeeder
  • ocrmypdf
  • papis (python38Packages.papis)
  • passExtensions.pass-import
  • pdfarranger
  • piston-cli
  • plex-mpv-shim
  • python38Packages.Nikola
  • python38Packages.Pweave
  • python38Packages.afdko
  • python38Packages.ansible-kernel
  • python38Packages.ansible-runner
  • python38Packages.async-upnp-client
  • python38Packages.b2sdk
  • python38Packages.batchspawner
  • python38Packages.bugwarrior
  • python38Packages.cairosvg
  • python38Packages.connect-box
  • python38Packages.cufflinks
  • python38Packages.datasets
  • python38Packages.defusedxml
  • python38Packages.dipy
  • python38Packages.django-allauth
  • python38Packages.django-mailman3
  • python38Packages.dnachisel
  • python38Packages.dockerspawner
  • python38Packages.exchangelib
  • python38Packages.flask-openid
  • python38Packages.genome-collector
  • python38Packages.graphtage
  • python38Packages.gtts
  • python38Packages.holoviews
  • python38Packages.hvplot
  • python38Packages.hyperopt
  • python38Packages.ignite
  • python38Packages.intake
  • python38Packages.internetarchive
  • python38Packages.ipydatawidgets
  • python38Packages.ipympl
  • python38Packages.ipyvue
  • python38Packages.ipyvuetify
  • python38Packages.ipywidgets
  • python38Packages.jira
  • python38Packages.jupyter
  • python38Packages.jupyter-sphinx
  • python38Packages.jupyterhub
  • python38Packages.jupyterhub-ldapauthenticator
  • python38Packages.jupyterhub-systemdspawner
  • python38Packages.jupyterhub-tmpauthenticator
  • python38Packages.jupyterlab
  • python38Packages.jupyterlab_launcher
  • python38Packages.jupyterlab_server
  • python38Packages.kmapper
  • python38Packages.labelbox
  • python38Packages.libagent
  • python38Packages.lightparam
  • python38Packages.livelossplot
  • python38Packages.lsassy
  • python38Packages.mesa
  • python38Packages.modeled
  • python38Packages.moretools
  • python38Packages.moviepy
  • python38Packages.msldap
  • python38Packages.myfitnesspal
  • python38Packages.nagiosplugin
  • python38Packages.nbclient
  • python38Packages.nbconflux
  • python38Packages.nbconvert
  • python38Packages.nbsmoke
  • python38Packages.nbsphinx
  • python38Packages.ndjson
  • python38Packages.nix-kernel
  • python38Packages.nltk
  • python38Packages.notebook
  • python38Packages.notedown
  • python38Packages.nototools
  • python38Packages.oauthenticator
  • python38Packages.odfpy
  • python38Packages.panel
  • python38Packages.papermill
  • python38Packages.parfive
  • python38Packages.perfplot
  • python38Packages.phik
  • python38Packages.pikepdf
  • python38Packages.plexapi
  • python38Packages.plugwise
  • python38Packages.postorius
  • python38Packages.privacyidea
  • python38Packages.proglog
  • python38Packages.pyexcel-ods
  • python38Packages.pygal
  • python38Packages.pyppeteer
  • python38Packages.pypykatz
  • python38Packages.pysaml2
  • python38Packages.python-daemon
  • python38Packages.python-didl-lite
  • python38Packages.python-miio
  • python38Packages.python-mpv-jsonipc
  • python38Packages.python3-openid
  • python38Packages.qiskit
  • python38Packages.qiskit-aer
  • python38Packages.qiskit-aqua
  • python38Packages.qiskit-ibmq-provider
  • python38Packages.qiskit-ignis
  • python38Packages.qiskit-terra
  • python38Packages.rbtools
  • python38Packages.rich
  • python38Packages.rising
  • python38Packages.robotframework-tools
  • python38Packages.rxv
  • python38Packages.sacremoses
  • python38Packages.salmon-mail
  • python38Packages.spacy
  • python38Packages.spyder_3
  • python38Packages.stytra
  • python38Packages.surepy
  • python38Packages.tablib
  • python38Packages.thinc
  • python38Packages.toggl-cli
  • python38Packages.tqdm
  • python38Packages.transformers
  • trezor_agent (python38Packages.trezor_agent)
  • python38Packages.tubeup
  • python38Packages.vega
  • python38Packages.weasyprint
  • python38Packages.widgetsnbextension
  • xml2rfc (python38Packages.xml2rfc)
  • python38Packages.zeep
  • python38Packages.zetup
  • python39Packages.Nikola
  • python39Packages.Pweave
  • python39Packages.async-upnp-client
  • python39Packages.batchspawner
  • python39Packages.cairosvg
  • python39Packages.connect-box
  • python39Packages.cufflinks
  • python39Packages.defusedxml
  • python39Packages.django-allauth
  • python39Packages.django-mailman3
  • python39Packages.dockerspawner
  • python39Packages.exchangelib
  • python39Packages.flask-openid
  • python39Packages.img2pdf
  • python39Packages.ipydatawidgets
  • python39Packages.ipympl
  • python39Packages.ipyvue
  • python39Packages.ipyvuetify
  • python39Packages.ipywidgets
  • python39Packages.jira
  • python39Packages.jupyter
  • python39Packages.jupyter-sphinx
  • python39Packages.jupyterhub
  • python39Packages.jupyterhub-ldapauthenticator
  • python39Packages.jupyterhub-systemdspawner
  • python39Packages.jupyterhub-tmpauthenticator
  • python39Packages.jupyterlab
  • python39Packages.jupyterlab_launcher
  • python39Packages.jupyterlab_server
  • python39Packages.kmapper
  • python39Packages.lightparam
  • python39Packages.livelossplot
  • python39Packages.modeled
  • python39Packages.moretools
  • python39Packages.nbclient
  • python39Packages.nbconflux
  • python39Packages.nbconvert
  • python39Packages.nbsphinx
  • python39Packages.nix-kernel
  • python39Packages.notebook
  • python39Packages.notedown
  • python39Packages.oauthenticator
  • python39Packages.odfpy
  • python39Packages.pikepdf
  • python39Packages.plugwise
  • python39Packages.postorius
  • python39Packages.privacyidea
  • python39Packages.pyexcel-ods
  • python39Packages.pygal
  • python39Packages.pysaml2
  • python39Packages.python-didl-lite
  • python39Packages.python3-openid
  • python39Packages.qiskit
  • python39Packages.qiskit-aer
  • python39Packages.qiskit-aqua
  • python39Packages.qiskit-ibmq-provider
  • python39Packages.qiskit-ignis
  • python39Packages.qiskit-terra
  • python39Packages.robotframework-tools
  • python39Packages.rxv
  • python39Packages.tablib
  • python39Packages.vega
  • python39Packages.widgetsnbextension
  • python39Packages.zeep
  • python39Packages.zetup
  • r128gain
  • radicale (radicale3)
  • sacad
  • sourcehut.metasrht
  • tartube
  • theharvester
  • tinyprog
  • twitter-color-emoji
  • urlwatch
  • xandikos

@SuperSandro2000 SuperSandro2000 merged commit c00f738 into NixOS:master Mar 7, 2021
@fabaff fabaff deleted the bump-defusedxml branch March 7, 2021 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants