depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-benchmark/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

32 lines
710 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";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [ 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 ];
};
}