pythonPackages.pytest-benchmark: init at 3.1.1
- fetchFromGitHub to get all tests - all tests pass - python 2.7, 3+
This commit is contained in:
parent
6e9d37713a
commit
eb6e376753
31
pkgs/development/python-modules/pytest-benchmark/default.nix
Normal file
31
pkgs/development/python-modules/pytest-benchmark/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestrunner
|
||||
, pytest
|
||||
, py-cpuinfo
|
||||
, pythonOlder
|
||||
, pathlib
|
||||
, statistics
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-benchmark";
|
||||
version = "3.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ionelmc";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1ch079dlc6c9ag74dh4dg6plkmh0h8kn78ari3fgadc75bald71m";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -1844,6 +1844,8 @@ in {
|
||||
|
||||
pytest-aiohttp = callPackage ../development/python-modules/pytest-aiohttp { };
|
||||
|
||||
pytest-benchmark = callPackage ../development/python-modules/pytest-benchmark { };
|
||||
|
||||
pytestcache = callPackage ../development/python-modules/pytestcache { };
|
||||
|
||||
pytest-catchlog = callPackage ../development/python-modules/pytest-catchlog { };
|
||||
|
Loading…
Reference in New Issue
Block a user