Unverified Commit 4b636b6e authored by Robert Scott's avatar Robert Scott Committed by GitHub
Browse files

Merge pull request #303907 from bcdarwin/update-python3-etelemetry

python311Packages.etelemetry: 0.2.1 -> 0.3.1
parents 61153af0 9c04c5ee
Loading
Loading
Loading
Loading
+29 −11
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchPypi, isPy27, ci-info, ci-py, requests }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, ci-info
, ci-py
, requests
, setuptools
}:

buildPythonPackage rec {
  version = "0.2.1";
  format = "setuptools";
  pname = "etelemetry";
  disabled = isPy27;
  version = "0.3.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    sha256 = "1rw8im09ppnb7z7p7rx658rp5ib8zca8byxg1kiflqwgx5c8zddz";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "sensein";
    repo = "etelemetry-client";
    rev = "refs/tags/v${version}";
    hash = "sha256-UaE5JQhv2AtzXKY7YD2/g6Kj1igKhmnY3zlf1P9B/iQ=";
  };

  propagatedBuildInputs = [ ci-info ci-py requests ];
  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [
    ci-info
    ci-py
    requests
  ];

  # all 2 of the tests both try to pull down from a url
  doCheck = false;
  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [
    "etelemetry"
@@ -24,7 +41,8 @@ buildPythonPackage rec {

  meta = with lib; {
    description = "Lightweight python client to communicate with the etelemetry server";
    homepage = "https://github.com/mgxd/etelemetry-client";
    homepage = "https://github.com/sensein/etelemetry-client";
    changelog = "https://github.com/sensein/etelemetry-client/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ ];
  };