about summary refs log tree commit diff
path: root/pkgs/development/python-modules/web3/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/web3/default.nix')
-rw-r--r--pkgs/development/python-modules/web3/default.nix73
1 files changed, 38 insertions, 35 deletions
diff --git a/pkgs/development/python-modules/web3/default.nix b/pkgs/development/python-modules/web3/default.nix
index ae709ef408865..49415d090f5c6 100644
--- a/pkgs/development/python-modules/web3/default.nix
+++ b/pkgs/development/python-modules/web3/default.nix
@@ -1,20 +1,21 @@
-{ lib
-, buildPythonPackage
-, fetchFromGitHub
-, pythonOlder
-, aiohttp
-, eth-abi
-, eth-account
-, eth-hash
-, eth-typing
-, eth-utils
-, hexbytes
-, ipfshttpclient
-, jsonschema
-, lru-dict
-, protobuf
-, requests
-, websockets
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  pythonOlder,
+  aiohttp,
+  eth-abi,
+  eth-account,
+  eth-hash,
+  eth-typing,
+  eth-utils,
+  hexbytes,
+  ipfshttpclient,
+  jsonschema,
+  lru-dict,
+  protobuf,
+  requests,
+  websockets,
 }:
 
 buildPythonPackage rec {
@@ -36,20 +37,24 @@ buildPythonPackage rec {
     ipfs = [ ipfshttpclient ];
   };
 
-  propagatedBuildInputs = [
-    aiohttp
-    eth-abi
-    eth-account
-    eth-hash ] ++ eth-hash.optional-dependencies.pycryptodome ++ [
-    eth-typing
-    eth-utils
-    hexbytes
-    jsonschema
-    lru-dict
-    protobuf
-    requests
-    websockets
-  ];
+  propagatedBuildInputs =
+    [
+      aiohttp
+      eth-abi
+      eth-account
+      eth-hash
+    ]
+    ++ eth-hash.optional-dependencies.pycryptodome
+    ++ [
+      eth-typing
+      eth-utils
+      hexbytes
+      jsonschema
+      lru-dict
+      protobuf
+      requests
+      websockets
+    ];
 
   # TODO: package eth-tester required for tests
   doCheck = false;
@@ -58,12 +63,10 @@ buildPythonPackage rec {
     substituteInPlace setup.py --replace "types-protobuf==3.19.13" "types-protobuf"
   '';
 
-  pythonImportsCheck = [
-    "web3"
-  ];
+  pythonImportsCheck = [ "web3" ];
 
   meta = with lib; {
-    description = "A python interface for interacting with the Ethereum blockchain and ecosystem";
+    description = "Python interface for interacting with the Ethereum blockchain and ecosystem";
     homepage = "https://web3py.readthedocs.io/";
     license = licenses.mit;
     maintainers = with maintainers; [ hellwolf ];