mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
1d1aa5e96e
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-pytest-benchmark/versions
32 lines
700 B
Nix
32 lines
700 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestrunner
|
|
, pytest
|
|
, py-cpuinfo
|
|
, pythonOlder
|
|
, pathlib
|
|
, statistics
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-benchmark";
|
|
version = "3.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ionelmc";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1hslzzinpwc1zqhbpllqh3sllmiyk69pcycl7ahr0rz3micgwczj";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pytest py-cpuinfo ] ++ lib.optional (pythonOlder "3.4") [ pathlib statistics ];
|
|
|
|
meta = {
|
|
description = "Py.test fixture for benchmarking code";
|
|
homepage = https://github.com/ionelmc/pytest-benchmark;
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ costrouc ];
|
|
};
|
|
}
|