python312Packages.statsd: migrate to pytest

This commit is contained in:
Martin Weinelt 2024-07-09 01:23:15 +02:00
parent 700e31b3bd
commit 3184ac1359
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,10 +1,10 @@
{
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 ];