nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytest
5, pytestCheckHook
6, pythonOlder
7, setuptools-scm
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-logdog";
12 version = "0.1.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "ods";
19 repo = pname;
20 rev = version;
21 hash = "sha256-Tmoq+KAGzn0MMj29rukDfAc4LSIwC8DoMTuBAppV32I=";
22 };
23
24 SETUPTOOLS_SCM_PRETEND_VERSION = version;
25
26 nativeBuildInputs = [
27 setuptools-scm
28 ];
29
30 buildInputs = [
31 pytest
32 ];
33
34
35 checkInputs = [
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "pytest_logdog"
41 ];
42
43 meta = with lib; {
44 description = "Pytest plugin to test logging";
45 homepage = "https://github.com/ods/pytest-logdog";
46 license = licenses.mit;
47 maintainers = with maintainers; [ fab ];
48 };
49}