1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pyperf/default.nix

44 lines
861 B
Nix
Raw Normal View History

2018-11-27 19:40:02 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, six
, statistics
, pythonOlder
, nose
, psutil
, contextlib2
, mock
, unittest2
, isPy27
, python
}:
buildPythonPackage rec {
pname = "pyperf";
2019-12-19 19:31:19 +00:00
version = "1.7.0";
2018-11-27 19:40:02 +00:00
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:19 +00:00
sha256 = "0d214aa65e085d3e4108a36152cb12f7cd0f4e7fda93b5134b43a9687c975786";
2018-11-27 19:40:02 +00: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 19:40:02 +00:00
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}