1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-22 17:31:04 +03:00
nixpkgs/pkgs/development/python-modules/pyperf/default.nix

44 lines
861 B
Nix
Raw Normal View History

2018-11-27 14:40:02 -05:00
{ lib
, buildPythonPackage
, fetchPypi
, six
, statistics
, pythonOlder
, nose
, psutil
, contextlib2
, mock
, unittest2
, isPy27
, python
}:
buildPythonPackage rec {
pname = "pyperf";
2020-05-09 12:01:55 +02:00
version = "1.7.1";
2018-11-27 14:40:02 -05:00
src = fetchPypi {
inherit pname version;
2020-05-09 12:01:55 +02:00
sha256 = "c37690e810116a83a244dfeec47885e2f0475b4c450313904be3bc2cdaf6d50a";
2018-11-27 14:40:02 -05:00
};
checkInputs = [ nose psutil ] ++
lib.optionals isPy27 [ contextlib2 mock unittest2 ];
propagatedBuildInputs = [ six ] ++
lib.optionals (pythonOlder "3.4") [ statistics ];
# tests not included in pypi repository
doCheck = false;
checkPhase = ''
${python.interpreter} -m nose
'';
meta = with lib; {
description = "Python module to generate and modify perf";
homepage = "https://pyperf.readthedocs.io/";
2018-11-27 14:40:02 -05:00
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}