summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/re-assert/default.nix
blob: 497908e994c23a7022be48d115b1c4839e1ee07c (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  regex,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "re-assert";
  version = "1.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "asottile";
    repo = "re-assert";
    tag = "v${version}";
    hash = "sha256-UTXFTD3QOKIzjq05J9Ontv5h9aClOwlPYKFXfDnBWuc=";
  };

  build-system = [ setuptools ];

  dependencies = [ regex ];

  pythonImportsCheck = [ "re_assert" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Show where your regex match assertion failed";
    license = lib.licenses.mit;
    homepage = "https://github.com/asottile/re-assert";
  };
}