Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyperf / default.nix
blob16ff853422bfd3ab4a22f7eb1399ffda08233fa6
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , psutil
6 , unittestCheckHook
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "pyperf";
12   version = "2.6.2";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-ZNj63OanT0ePKYMsHqoqBIVmVev/FyktUjf8gxfDo8U=";
20   };
22   nativeBuildInputs = [
23     setuptools
24   ];
26   propagatedBuildInputs = [
27     psutil
28   ];
30   nativeCheckInputs = [
31     unittestCheckHook
32   ];
34   unittestFlagsArray = [
35     "-s"
36     "pyperf/tests/"
37     "-v"
38   ];
40   pythonImportsCheck = [
41     "pyperf"
42   ];
44   meta = with lib; {
45     description = "Python module to generate and modify perf";
46     homepage = "https://pyperf.readthedocs.io/";
47     changelog = "https://github.com/psf/pyperf/releases/tag/${version}";
48     license = licenses.mit;
49     maintainers = with maintainers; [ ];
50   };