depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-subprocess/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

47 lines
930 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytest
, pytestCheckHook
, docutils
, pygments
, pytest-rerunfailures
, pytest-asyncio
, anyio
}:
buildPythonPackage rec {
pname = "pytest-subprocess";
version = "1.4.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "aklajnert";
repo = "pytest-subprocess";
rev = version;
hash = "sha256-xNkOXBCQ4AH/JVmxFzI3VSouA6jkCbUom7AdckfjGiE=";
};
buildInputs = [
pytest
];
checkInputs = [
pytestCheckHook
docutils
pygments
pytest-rerunfailures
pytest-asyncio
anyio
];
meta = with lib; {
description = "A plugin to fake subprocess for pytest";
homepage = "https://github.com/aklajnert/pytest-subprocess";
changelog = "https://github.com/aklajnert/pytest-subprocess/blob/${version}/HISTORY.rst";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}