depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-benchmark/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
688 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, 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.optionals (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 ];
};
}