nixpkgs/pkgs/development/python-modules/pytest-benchmark/default.nix
volth f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00

30 lines
685 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.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 ];
};
}