5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
45 lines
870 B
Nix
45 lines
870 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
psutil,
|
|
unittestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyperf";
|
|
version = "2.7.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QgHGYBAy83TpyQDG0lRKL1iRq+3BqW7sDnsjOKYkdYk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ psutil ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
unittestFlagsArray = [
|
|
"-s"
|
|
"pyperf/tests/"
|
|
"-v"
|
|
];
|
|
|
|
pythonImportsCheck = [ "pyperf" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to generate and modify perf";
|
|
mainProgram = "pyperf";
|
|
homepage = "https://pyperf.readthedocs.io/";
|
|
changelog = "https://github.com/psf/pyperf/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|