summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/trailrunner/default.nix
blob: 41833c21d5af226f2c2ba14552bb09b4de4bb1d5 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  flit-core,
  pathspec,
  unittestCheckHook,
}:

buildPythonPackage rec {
  pname = "trailrunner";
  version = "1.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "omnilib";
    repo = "trailrunner";
    tag = "v${version}";
    hash = "sha256-qtEBr22yyj6WcSfyYr/4r0IuuMJ6chFFqnmb+uMfQPA=";
  };

  nativeBuildInputs = [ flit-core ];

  propagatedBuildInputs = [ pathspec ];

  nativeCheckInputs = [ unittestCheckHook ];

  pythonImportsCheck = [ "trailrunner" ];

  meta = {
    description = "Module to walk paths and run things";
    homepage = "https://github.com/omnilib/trailrunner";
    changelog = "https://github.com/omnilib/trailrunner/blob/${version}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}