diff --git a/pkgs/development/python-modules/cardano-tools/default.nix b/pkgs/development/python-modules/cardano-tools/default.nix new file mode 100644 index 000000000000..d6b1af66af58 --- /dev/null +++ b/pkgs/development/python-modules/cardano-tools/default.nix @@ -0,0 +1,37 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + # Python deps + requests, + pexpect, +}: + +buildPythonPackage rec { + pname = "cardano-tools"; + version = "2.1.0"; + pyproject = true; + + src = fetchPypi { + pname = "cardano_tools"; + inherit version; + hash = "sha256-RFyKXHafV+XgRJSsTjASCCw9DxvZqertf4NNN616Bp4="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ + requests + pexpect + ]; + + pythonImportsCheck = [ "cardano_tools" ]; + + meta = with lib; { + description = "Python module for interfacing with the Cardano blockchain"; + homepage = "https://gitlab.com/viperscience/cardano-tools"; + license = licenses.asl20; + maintainers = with maintainers; [ t4ccer ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9867ff038b73..dcc17fd29c3c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2102,6 +2102,8 @@ self: super: with self; { carbon = callPackage ../development/python-modules/carbon { }; + cardano-tools = callPackage ../development/python-modules/cardano-tools { }; + cardimpose = callPackage ../development/python-modules/cardimpose { }; cart = callPackage ../development/python-modules/cart { };