summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/durationpy/default.nix
blob: a86bc41ec3015e834e04c1ff577e6d0988fc9561 (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,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "durationpy";
  version = "0.9";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "icholy";
    repo = "durationpy";
    rev = version;
    hash = "sha256-R/cZPnUUlosGHCOcqwRJ0GJlcB6Lu5a3e5h1CQ6fysA=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  enabledTestPaths = [ "test.py" ];

  pythonImportsCheck = [ "durationpy" ];

  meta = {
    description = "Module for converting between datetime.timedelta and Go's time.Duration strings";
    homepage = "https://github.com/icholy/durationpy";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}