nixpkgs/pkgs/development/python-modules/hexbytes/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

44 lines
913 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
eth-utils,
hypothesis,
pytestCheckHook,
pydantic,
}:
buildPythonPackage rec {
pname = "hexbytes";
version = "1.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "ethereum";
repo = "hexbytes";
tag = "v${version}";
hash = "sha256-xYXxlyVGdsksxZJtSpz1V3pj4NL7IzX0gaQeCoiHr8g=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
eth-utils
hypothesis
pytestCheckHook
pydantic
];
disabledTests = [ "test_install_local_wheel" ];
pythonImportsCheck = [ "hexbytes" ];
meta = {
description = "`bytes` subclass that decodes hex, with a readable console output";
homepage = "https://github.com/ethereum/hexbytes";
changelog = "https://github.com/ethereum/hexbytes/blob/v${version}/docs/release_notes.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
}