summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-unmagic/default.nix
blob: 869bbfd65b03b1f4019c9ba6f804a493943cb100 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  gitUpdater,
  flit-core,
  pytest,
}:

buildPythonPackage rec {
  pname = "pytest-unmagic";
  version = "1.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dimagi";
    repo = "pytest-unmagic";
    tag = "v${version}";
    hash = "sha256-XHeQuMCYHtrNF5+7e/eMzcvYukM+AobHCMRdzL+7KpU=";
  };

  build-system = [
    flit-core
  ];

  dependencies = [ pytest ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "unmagic" ];

  passthru.updateScript = gitUpdater { rev-prefix = "v"; };

  meta = {
    description = "Pytest fixtures with conventional import semantics";
    homepage = "https://github.com/dimagi/pytest-unmagic";
    license = lib.licenses.bsd3;
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ jopejoe1 ];
  };
}