summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/duration-parser/default.nix
blob: 506c3581df11c06fbbfd5d4c97d8fe9b392c7ff3 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "duration-parser";
  version = "1.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "adriansahlman";
    repo = "duration-parser";
    tag = "v${version}";
    hash = "sha256-Vn3H2JEMrJ6b/7eNG+h9tG5QzslGvaV3sunM7UO9Bok=";
  };

  build-system = [
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "duration_parser"
  ];

  meta = {
    description = "Minimal duration parser written in python";
    homepage = "https://github.com/adriansahlman/duration-parser";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ hexa ];
  };
}