Files
nixpkgs/pkgs/development/python-modules/pytest-spec/default.nix
2025-10-09 13:32:10 +00:00

49 lines
982 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
setuptools-scm,
pytest,
pytestCheckHook,
pytest-describe,
}:
buildPythonPackage rec {
pname = "pytest-spec";
version = "5.2.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "pchomik";
repo = "pytest-spec";
tag = version;
hash = "sha256-nKBzQrosgTKHoID43u6G31fphsDyCVZhsNQuYIHiLfA=";
};
build-system = [
setuptools
setuptools-scm
];
buildInputs = [ pytest ];
nativeCheckInputs = [
pytestCheckHook
pytest-describe
];
pythonImportsCheck = [ "pytest_spec" ];
meta = {
changelog = "https://github.com/pchomik/pytest-spec/blob/${src.tag}/CHANGES.txt";
description = "Pytest plugin to display test execution output like a SPECIFICATION";
homepage = "https://github.com/pchomik/pytest-spec";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ tomasajt ];
};
}