nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 eth-utils,
7 hypothesis,
8 pytestCheckHook,
9 pydantic,
10}:
11
12buildPythonPackage rec {
13 pname = "hexbytes";
14 version = "1.3.1";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "ethereum";
19 repo = "hexbytes";
20 tag = "v${version}";
21 hash = "sha256-xYXxlyVGdsksxZJtSpz1V3pj4NL7IzX0gaQeCoiHr8g=";
22 };
23
24 build-system = [ setuptools ];
25
26 nativeCheckInputs = [
27 eth-utils
28 hypothesis
29 pytestCheckHook
30 pydantic
31 ];
32
33 disabledTests = [ "test_install_local_wheel" ];
34
35 pythonImportsCheck = [ "hexbytes" ];
36
37 meta = {
38 description = "`bytes` subclass that decodes hex, with a readable console output";
39 homepage = "https://github.com/ethereum/hexbytes";
40 changelog = "https://github.com/ethereum/hexbytes/blob/v${version}/docs/release_notes.rst";
41 license = lib.licenses.mit;
42 maintainers = [ ];
43 };
44}