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

slither-analyzer: 0.10.3 -> 0.10.4 | python312Packages.web3: 6.5.0 -> 6.20.3 | python312Packages.pyunormalize: init at 15.1.0 | python312Packages.prettytable: 3.10.1 -> 3.10.2 #337542

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

hellwolf
Copy link
Contributor

@hellwolf hellwolf commented Aug 26, 2024

Description of changes

  • slither-analyzer: 0.10.3 -> 0.10.4, which requires:
    • python312Packages.web3: 6.5.0 -> 6.20.3
    • python312Packages.pyunormalize: init at 15.1.0
    • python312Packages.prettytable: 3.10.1 -> 3.10.2

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@hellwolf hellwolf force-pushed the slither-0.10.4 branch 2 times, most recently from b89a2bd to 486621a Compare August 26, 2024 20:07
@hellwolf
Copy link
Contributor Author

hellwolf commented Aug 26, 2024

@ofborg build slither-analyzer

again.

@hellwolf
Copy link
Contributor Author

$ nixpkgs-review pr 337542 --print-result --build-args "--max-jobs 0 --builders @${HOME}/.config/nix/machines"

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

4 packages marked as broken and skipped:
  • nixops_unstablePlugins.nixops-aws
  • nixops_unstablePlugins.nixops-aws.dist
  • python311Packages.subunit2sql
  • python311Packages.subunit2sql.dist
20 packages failed to build:
  • ceph
  • ceph-client
  • ceph-csi
  • ceph.dev
  • ceph.doc
  • libceph (ceph.lib ,libceph.dev ,libceph.doc ,libceph.lib ,libceph.man)
  • ceph.man
  • dduper
  • python311Packages.jenkins-job-builder
  • python311Packages.jenkins-job-builder.dist
  • qemu_full
  • qemu_full.debug
  • qemu_full.ga
  • quickemu
  • quickgui
  • quickgui.debug
  • quickgui.pubcache
  • samba4Full
  • samba4Full.dev
  • samba4Full.man
199 packages built:
  • apkleaks
  • apkleaks.dist
  • barbicanclient (python311Packages.python-barbicanclient)
  • barbicanclient.dist (python311Packages.python-barbicanclient.dist)
  • certbot-full
  • checkov
  • checkov.dist
  • creds
  • creds.dist
  • echidna
  • glanceclient (python311Packages.python-glanceclient)
  • glanceclient.dist (python311Packages.python-glanceclient.dist)
  • glusterfs
  • heatclient (python311Packages.python-heatclient)
  • heatclient.dist (python311Packages.python-heatclient.dist)
  • home-assistant-component-tests.honeywell
  • home-assistant-component-tests.nx584
  • hstsparser
  • hstsparser.dist
  • imdshift
  • imdshift.dist
  • ironicclient (python311Packages.python-ironicclient)
  • ironicclient.dist (python311Packages.python-ironicclient.dist)
  • jadx
  • kicadAddons.kikit
  • kicadAddons.kikit-library
  • kikit
  • kikit.dist
  • kmymoney
  • kolla
  • kolla.dist
  • kube-hunter
  • kube-hunter.dist
  • lexicon (python312Packages.dns-lexicon)
  • lexicon.dist (python312Packages.dns-lexicon.dist)
  • manilaclient (python311Packages.python-manilaclient)
  • manilaclient.dist (python311Packages.python-manilaclient.dist)
  • nitrokey-app2
  • nitrokey-app2.dist
  • nixops_unstablePlugins.nixops-digitalocean
  • nixops_unstablePlugins.nixops-digitalocean.dist
  • nixops_unstablePlugins.nixops-encrypted-links
  • nixops_unstablePlugins.nixops-encrypted-links.dist
  • nixops_unstablePlugins.nixops-hercules-ci
  • nixops_unstablePlugins.nixops-hercules-ci.dist
  • nixops_unstablePlugins.nixops-vbox
  • nixops_unstablePlugins.nixops-vbox.dist
  • nixops_unstablePlugins.nixos-modules-contrib
  • nixops_unstablePlugins.nixos-modules-contrib.dist
  • nixops_unstable_full
  • nixops_unstable_full.dist
  • nixops_unstable_minimal
  • nixops_unstable_minimal.dist
  • nucleiparser
  • nucleiparser.dist
  • openstackclient (python311Packages.python-openstackclient)
  • openstackclient-full
  • openstackclient-full.dist
  • openstackclient.dist (python311Packages.python-openstackclient.dist)
  • patroni
  • patroni.dist
  • polygon-cli
  • polygon-cli.dist
  • pynitrokey (python312Packages.pynitrokey)
  • pynitrokey.dist (python312Packages.pynitrokey.dist)
  • pyocd (python312Packages.pyocd)
  • pyocd.dist (python312Packages.pyocd.dist)
  • python311Packages.aigpy
  • python311Packages.aigpy.dist
  • python311Packages.aiosomecomfort
  • python311Packages.aiosomecomfort.dist
  • python311Packages.certbot-dns-ovh
  • python311Packages.certbot-dns-ovh.dist
  • python311Packages.cliff
  • python311Packages.cliff.dist
  • python311Packages.dns-lexicon
  • python311Packages.dns-lexicon.dist
  • python311Packages.fiblary3-fork
  • python311Packages.fiblary3-fork.dist
  • python311Packages.hacking
  • python311Packages.hacking.dist
  • python311Packages.insightface
  • python311Packages.insightface.dist
  • python311Packages.ipython-sql
  • python311Packages.ipython-sql.dist
  • python311Packages.jupysql
  • python311Packages.jupysql.dist
  • python311Packages.keystoneauth1
  • python311Packages.keystoneauth1.dist
  • python311Packages.ldappool
  • python311Packages.ldappool.dist
  • python311Packages.openstacksdk
  • python311Packages.openstacksdk.dist
  • python311Packages.openstacksdk.man
  • python311Packages.osc-lib
  • python311Packages.osc-lib.dist
  • python311Packages.oslo-concurrency
  • python311Packages.oslo-concurrency.dist
  • python311Packages.oslo-config
  • python311Packages.oslo-config.dist
  • python311Packages.oslo-context
  • python311Packages.oslo-context.dist
  • python311Packages.oslo-db
  • python311Packages.oslo-db.dist
  • python311Packages.oslo-i18n
  • python311Packages.oslo-i18n.dist
  • python311Packages.oslo-log
  • python311Packages.oslo-log.dist
  • python311Packages.oslo-serialization
  • python311Packages.oslo-serialization.dist
  • python311Packages.oslo-utils
  • python311Packages.oslo-utils.dist
  • python311Packages.prettytable
  • python311Packages.prettytable.dist
  • python311Packages.pynitrokey
  • python311Packages.pynitrokey.dist
  • python311Packages.pynx584
  • python311Packages.pynx584.dist
  • python311Packages.pyocd
  • python311Packages.pyocd-pemicro
  • python311Packages.pyocd-pemicro.dist
  • python311Packages.pyocd.dist
  • python311Packages.python-cinderclient
  • python311Packages.python-cinderclient.dist
  • python311Packages.python-designateclient
  • python311Packages.python-designateclient.dist
  • python311Packages.python-jenkins
  • python311Packages.python-jenkins.dist
  • python311Packages.python-keystoneclient
  • python311Packages.python-keystoneclient.dist
  • python311Packages.python-novaclient
  • python311Packages.python-novaclient.dist
  • swiftclient (python311Packages.python-swiftclient)
  • swiftclient.dist (python311Packages.python-swiftclient.dist)
  • python311Packages.pyunormalize
  • python311Packages.pyunormalize.dist
  • python311Packages.softlayer
  • python311Packages.softlayer.dist
  • python311Packages.spsdk
  • python311Packages.spsdk.dist
  • python311Packages.stestr
  • python311Packages.stestr.dist
  • python311Packages.tempest
  • python311Packages.tempest.dist
  • python311Packages.tern
  • python311Packages.tern.dist
  • python311Packages.toggl-cli
  • python311Packages.toggl-cli.dist
  • python311Packages.web3
  • python311Packages.web3.dist
  • python311Packages.woob
  • python311Packages.woob.dist
  • python312Packages.aigpy
  • python312Packages.aigpy.dist
  • python312Packages.aiosomecomfort
  • python312Packages.aiosomecomfort.dist
  • python312Packages.certbot-dns-ovh
  • python312Packages.certbot-dns-ovh.dist
  • python312Packages.fiblary3-fork
  • python312Packages.fiblary3-fork.dist
  • python312Packages.insightface
  • python312Packages.insightface.dist
  • python312Packages.ipython-sql
  • python312Packages.ipython-sql.dist
  • python312Packages.ldappool
  • python312Packages.ldappool.dist
  • python312Packages.prettytable
  • python312Packages.prettytable.dist
  • python312Packages.pynx584
  • python312Packages.pynx584.dist
  • python312Packages.pyocd-pemicro
  • python312Packages.pyocd-pemicro.dist
  • python312Packages.pyunormalize
  • python312Packages.pyunormalize.dist
  • python312Packages.softlayer
  • python312Packages.softlayer.dist
  • python312Packages.spsdk
  • python312Packages.spsdk.dist
  • python312Packages.tern
  • python312Packages.tern.dist
  • python312Packages.toggl-cli
  • python312Packages.toggl-cli.dist
  • python312Packages.web3
  • python312Packages.web3.dist
  • python312Packages.woob
  • python312Packages.woob.dist
  • quark-engine
  • quark-engine.dist
  • sigma-cli
  • sigma-cli.dist
  • skypilot
  • skypilot.dist
  • slither-analyzer
  • slither-analyzer.dist
  • sr2t
  • sr2t.dist
  • tidal-dl
  • tidal-dl.dist
  • weevely

It doesn't seem that those broken packages are caused by this changset.

@hellwolf hellwolf marked this pull request as ready for review August 26, 2024 21:11
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/4469

pkgs/by-name/sl/slither-analyzer/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/sl/slither-analyzer/package.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/prettytable/default.nix Outdated Show resolved Hide resolved
};

# do not run tests
doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

Upstream repo seem to contain tests.

Please add pythonImportsCheck.

Copy link
Contributor Author

@hellwolf hellwolf Aug 29, 2024

Choose a reason for hiding this comment

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

Done. Please check everything again.

@hellwolf hellwolf force-pushed the slither-0.10.4 branch 2 times, most recently from be17bc6 to b7ffd50 Compare August 29, 2024 19:36
@hellwolf
Copy link
Contributor Author

@ofborg build slither-analyzer

pkgs/by-name/sl/slither-analyzer/package.nix Show resolved Hide resolved
hash = "sha256-z0qHRRoPHLdpEaqX9DL0V54fVkovDITOSIxzpzkBtsE=";
};

doCheck = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this the default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it seems so. I wasn't sure about it myself, and I thought it would be better for the maintainers to not rely on implicit knowledge. I could also remove it, it doesn't seem to be a very unified thing in the code base:

$ git grep 'doCheck = true' pkgs/development/python-modules| wc -l
94

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, removed.

pkgs/development/python-modules/prettytable/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/pyunormalize/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/pyunormalize/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/pyunormalize/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/pyunormalize/default.nix Outdated Show resolved Hide resolved
}:

buildPythonPackage rec {
pname = "web3";
version = "6.5.0";
version = "6.20.3";
format = "setuptools";
Copy link
Member

Choose a reason for hiding this comment

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

Can we also convert this to pyproject?

Copy link
Contributor Author

@hellwolf hellwolf Sep 4, 2024

Choose a reason for hiding this comment

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

By doing so, these errors popped up:

       >   - ckzg not installed
       >   - hexbytes<0.4.0,>=0.1.0 not satisfied by version 1.2.0
       >   - lru-dict<1.3.0,>=1.1.6 not satisfied by version 1.3.0

Copy link
Contributor Author

@hellwolf hellwolf Sep 4, 2024

Choose a reason for hiding this comment

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

And as we speak web3 7 doesn't require ckzg anymore.... :/

Upstreams runs faster than the speed of PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shall we call it for a day, and fix web3 pyproject project in a future PR? I am happy to do it, and I will keep this in mind.

setuptools-scm
];

propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
propagatedBuildInputs = with python3Packages; [
dependencies = with python3Packages; [

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

];

pythonImportsCheck = [ "pyunormalize" ];

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
Contributor Author

Choose a reason for hiding this comment

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

I thought the tests were enabled by default. I was asked to remove "doCheck = true;" in the previous comments

Copy link
Contributor Author

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.

Did you read the documentation I showed you?
It says that buildPythonPackage sets doCheck = true by default, and the package needs its own checkPhase. In most cases, just add pytestCheckHook to nativeCheckInputs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it. Done.

@@ -29,32 +30,29 @@ buildPythonPackage rec {
owner = "ethereum";
repo = "web3.py";
rev = "v${version}";
hash = "sha256-RNWCZQjcse415SSNkHhMWckDcBJGFZnjisckF7gbYY8=";
hash = "sha256-lxCd1Cc79SW8uQrKom9Lqeb7VPuj2nKFlCj51EgSSuk=";
};

# Note: to reflect the extra_requires in main/setup.py.
passthru.optional-dependencies = {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
passthru.optional-dependencies = {
optional-dependencies = {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

requests
websockets
];
propagatedBuildInputs = [
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
propagatedBuildInputs = [
dependencies = [

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@hellwolf hellwolf force-pushed the slither-0.10.4 branch 3 times, most recently from afc033f to 1e3bcee Compare September 5, 2024 08:10
@hellwolf
Copy link
Contributor Author

what should we do next?

@SuperSandro2000 @drupol @fabaff @natsukium

1 similar comment
@hellwolf
Copy link
Contributor Author

what should we do next?

@SuperSandro2000 @drupol @fabaff @natsukium

@hellwolf
Copy link
Contributor Author

converting this to draft, due to that another PR that addresses web3 package issue is currently ongoing https://github.com/NixOS/nixpkgs/pull/337542/files

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.

7 participants