mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
python3Packages.pytest-benchmark: 3.2.2 -> 3.4.1
This commit is contained in:
committed by
Jonathan Ringer
parent
c1bdf9b7b5
commit
fc94f7aaa2
@@ -1,32 +1,47 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest
|
||||
, py-cpuinfo
|
||||
, pythonOlder
|
||||
, pathlib
|
||||
, py-cpuinfo
|
||||
, pytest
|
||||
, pythonOlder
|
||||
, statistics
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-benchmark";
|
||||
version = "3.2.2";
|
||||
version = "3.4.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ionelmc";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1hslzzinpwc1zqhbpllqh3sllmiyk69pcycl7ahr0rz3micgwczj";
|
||||
sha256 = "sha256-qc/8Epax5bPUZvhq42xSj6NUq0T4gbO5dDDS6omWBOU=";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
buildInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ py-cpuinfo ] ++ lib.optionals (pythonOlder "3.4") [ pathlib statistics ];
|
||||
propagatedBuildInputs = [
|
||||
py-cpuinfo
|
||||
] ++ lib.optionals (pythonOlder "3.4") [
|
||||
pathlib
|
||||
statistics
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Py.test fixture for benchmarking code";
|
||||
# Circular dependency
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pytest_benchmark"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pytest fixture for benchmarking code";
|
||||
homepage = "https://github.com/ionelmc/pytest-benchmark";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ costrouc ];
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user