mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 20:14:37 +00:00
python312Packages.statsd: migrate to pytest
This commit is contained in:
parent
700e31b3bd
commit
3184ac1359
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user