Unverified Commit 3184ac13 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python312Packages.statsd: migrate to pytest

parent 700e31b3
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  setuptools,
  pynose,
  mock,
  pytestCheckHook,
}:

buildPythonPackage rec {
@@ -12,21 +12,21 @@ buildPythonPackage rec {
  version = "4.0.1";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-mXY9qBv+qNr2s9ItEarMsBqND1LqUh2qs351ikyn0Sg=";
  src = fetchFromGitHub {
    owner = "jsocol";
    repo = "pystatsd";
    rev = "refs/tags/v${version}";
    hash = "sha256-g830TjFERKUguFKlZeaOhCTlaUs0wcDg4bMdRDr3smw=";
  };

  nativeBuildInputs = [ setuptools ];

  nativeCheckInputs = [
    pynose
    mock
    pytestCheckHook
  ];

  checkPhase = ''
    nosetests -sv
  '';
  pytestFlagsArray = [ "statsd/tests.py" ];

  meta = with lib; {
    maintainers = with maintainers; [ domenkozar ];