nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 setuptools-scm,
7 pytest,
8 pytestCheckHook,
9 pytest-describe,
10}:
11
12buildPythonPackage (finalAttrs: {
13 pname = "pytest-spec";
14 version = "5.2.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "pchomik";
19 repo = "pytest-spec";
20 tag = finalAttrs.version;
21 hash = "sha256-nKBzQrosgTKHoID43u6G31fphsDyCVZhsNQuYIHiLfA=";
22 };
23
24 build-system = [
25 setuptools
26 setuptools-scm
27 ];
28
29 buildInputs = [ pytest ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 pytest-describe
34 ];
35
36 pythonImportsCheck = [ "pytest_spec" ];
37
38 meta = {
39 changelog = "https://github.com/pchomik/pytest-spec/blob/${finalAttrs.src.rev}/CHANGES.txt";
40 description = "Pytest plugin to display test execution output like a SPECIFICATION";
41 homepage = "https://github.com/pchomik/pytest-spec";
42 license = lib.licenses.gpl2Plus;
43 maintainers = with lib.maintainers; [ tomasajt ];
44 };
45})