summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/snapshottest/default.nix
blob: f8f39d6687bc25ae3b729b22f1a9da6db254f640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fastdiff,
  six,
  termcolor,
  pytestCheckHook,
  pytest-cov-stub,
  django,
}:

buildPythonPackage rec {
  pname = "snapshottest";
  version = "0.6.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0g35ggqw4jd9zmazw55kj6gfjdghv49qx4jw5q231qyqj8fzijmv";
  };

  propagatedBuildInputs = [
    fastdiff
    six
    termcolor
  ];

  nativeCheckInputs = [
    django
    pytestCheckHook
    pytest-cov-stub
  ];

  pythonImportsCheck = [ "snapshottest" ];

  meta = {
    description = "Snapshot testing for pytest, unittest, Django, and Nose";
    homepage = "https://github.com/syrusakbary/snapshottest";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}