depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-spec/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

48 lines
997 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
setuptools-scm,
pytest,
pytestCheckHook,
pytest-describe,
}:
buildPythonPackage rec {
pname = "pytest-spec";
version = "4.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pchomik";
repo = "pytest-spec";
rev = "refs/tags/${version}";
hash = "sha256-SOu4ucRcLQSk1YOfNifFDezsB+ZeLXTwbJJ93/3EASk=";
};
build-system = [
setuptools
setuptools-scm
];
buildInputs = [ pytest ];
nativeCheckInputs = [
pytestCheckHook
pytest-describe
];
pythonImportsCheck = [ "pytest_spec" ];
meta = {
changelog = "https://github.com/pchomik/pytest-spec/blob/${src.rev}/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 ];
};
}