Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pytest-logdog / default.nix
blobf9bd63d8ee66a6de46639752f87589f864fc46d1
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytest
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools
8 , setuptools-scm
9 }:
11 buildPythonPackage rec {
12   pname = "pytest-logdog";
13   version = "0.1.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "ods";
20     repo = pname;
21     rev = version;
22     hash = "sha256-Tmoq+KAGzn0MMj29rukDfAc4LSIwC8DoMTuBAppV32I=";
23   };
25   SETUPTOOLS_SCM_PRETEND_VERSION = version;
27   nativeBuildInputs = [
28     setuptools-scm
29   ];
31   buildInputs = [
32     pytest
33   ];
35   propagatedBuildInputs = [
36     setuptools
37   ];
39   nativeCheckInputs = [
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [
44     "pytest_logdog"
45   ];
47   meta = with lib; {
48     description = "Pytest plugin to test logging";
49     homepage = "https://github.com/ods/pytest-logdog";
50     license = licenses.mit;
51     maintainers = with maintainers; [ fab ];
52   };