pythonPackages.perf: init at 1.5.1
This commit is contained in:
parent
8b6b45c742
commit
0b7522d0f6
43
pkgs/development/python-modules/perf/default.nix
Normal file
43
pkgs/development/python-modules/perf/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, six
|
||||||
|
, statistics
|
||||||
|
, pythonOlder
|
||||||
|
, nose
|
||||||
|
, psutil
|
||||||
|
, contextlib2
|
||||||
|
, mock
|
||||||
|
, unittest2
|
||||||
|
, isPy27
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "perf";
|
||||||
|
version = "1.5.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "5aae76e58bd3edd0c50adcc7c16926ebb9ed8c0e5058b435a30d58c6bb0394a8";
|
||||||
|
};
|
||||||
|
|
||||||
|
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://github.com/vstinner/perf;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.costrouc ];
|
||||||
|
};
|
||||||
|
}
|
@ -488,6 +488,8 @@ in {
|
|||||||
|
|
||||||
pdfx = callPackage ../development/python-modules/pdfx { };
|
pdfx = callPackage ../development/python-modules/pdfx { };
|
||||||
|
|
||||||
|
perf = callPackage ../development/python-modules/perf { };
|
||||||
|
|
||||||
phonopy = callPackage ../development/python-modules/phonopy { };
|
phonopy = callPackage ../development/python-modules/phonopy { };
|
||||||
|
|
||||||
pims = callPackage ../development/python-modules/pims { };
|
pims = callPackage ../development/python-modules/pims { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user