uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
43
pkgs/development/python-modules/pyperf/default.nix
Normal file
43
pkgs/development/python-modules/pyperf/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
, statistics
|
||||
, pythonOlder
|
||||
, nose
|
||||
, psutil
|
||||
, contextlib2
|
||||
, mock
|
||||
, unittest2
|
||||
, isPy27
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyperf";
|
||||
version = "2.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-SsLiz3JKubUlInw7SmnxarXHFOpbrWHJdODF1XhyOKE=";
|
||||
};
|
||||
|
||||
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/";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue