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
47
pkgs/development/python-modules/pytest-benchmark/default.nix
Normal file
47
pkgs/development/python-modules/pytest-benchmark/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pathlib
|
||||
, py-cpuinfo
|
||||
, pytest
|
||||
, pythonOlder
|
||||
, statistics
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-benchmark";
|
||||
version = "3.4.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ionelmc";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-qc/8Epax5bPUZvhq42xSj6NUq0T4gbO5dDDS6omWBOU=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
py-cpuinfo
|
||||
] ++ lib.optionals (pythonOlder "3.4") [
|
||||
pathlib
|
||||
statistics
|
||||
];
|
||||
|
||||
# Circular dependency
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pytest_benchmark"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pytest fixture for benchmarking code";
|
||||
homepage = "https://github.com/ionelmc/pytest-benchmark";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue