depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-subtests/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

52 lines
870 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build-system
, setuptools
, setuptools-scm
# dependencies
, attrs
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-subtests";
version = "0.11.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-UYZciEV1RfUftyARlC8KPGkB7p4ky/ttG53BNIuvvjc=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
attrs
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pytest_subtests"
];
meta = with lib; {
description = "Pytest plugin for unittest subTest() support and subtests fixture";
homepage = "https://github.com/pytest-dev/pytest-subtests";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}