diff --git a/pkgs/development/python-modules/etelemetry/default.nix b/pkgs/development/python-modules/etelemetry/default.nix new file mode 100644 index 000000000000..2323a4dcd579 --- /dev/null +++ b/pkgs/development/python-modules/etelemetry/default.nix @@ -0,0 +1,29 @@ +{ lib, buildPythonPackage, fetchPypi, requests, pytest }: + +buildPythonPackage rec { + version = "0.1.2"; + pname = "etelemetry"; + + src = fetchPypi { + inherit pname version; + sha256 = "0m3dqvs3xbckmjiwppy366qmgzx0z917j1d7dadfl3bprgipy51j"; + }; + + propagatedBuildInputs = [ requests ]; + + # all 2 of the tests both try to pull down from a url + doCheck = false; + + pythonImportsCheck = [ + "etelemetry" + "etelemetry.client" + "etelemetry.config" + ]; + + meta = with lib; { + description = "Lightweight python client to communicate with the etelemetry server"; + homepage = "https://github.com/mgxd/etelemetry-client"; + license = licenses.asl20; + maintainers = with maintainers; [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c40bbf19e9fc..aa361904eb30 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2040,6 +2040,8 @@ in { envs = callPackage ../development/python-modules/envs { }; + etelemetry = callPackage ../development/python-modules/etelemetry { }; + eth-hash = callPackage ../development/python-modules/eth-hash { }; eth-typing = callPackage ../development/python-modules/eth-typing { };