about summary refs log tree commit diff
path: root/pkgs/development/python-modules/exrex/default.nix
blob: 0d51a9862ee7a6386c7e2e51313cad664bac0fe4 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
}:

buildPythonPackage rec {
  pname = "exrex";
  version = "unstable-2021-04-22";

  src = fetchFromGitHub {
    owner = "asciimoo";
    repo = "exrex";
    rev = "9a66706e7582a9cf31c4121629c9035e329bbe21";
    sha256 = "sha256-g31tHY+LzGxwBmUpSa0DV7ruLfYwmuDg+XyBxMZRa9U=";
  };

  patches = [
    (fetchpatch {
      # https://github.com/asciimoo/exrex/pull/65
      url = "https://github.com/asciimoo/exrex/commit/44712bfb1350a509581a5834d9fa8aebcd9434db.patch";
      hash = "sha256-thKotSvdVdVjXaG/AhsXmW51FHLOYUeYTYw8SA/k2t4=";
    })
  ];

  # Projec thas no released tests
  doCheck = false;
  pythonImportsCheck = [ "exrex" ];

  meta = with lib; {
    description = "Irregular methods on regular expressions";
    homepage = "https://github.com/asciimoo/exrex";
    license = with licenses; [ agpl3Plus ];
    maintainers = with maintainers; [ fab ];
  };
}