summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/everett/default.nix
blob: 718e68c10ef78715d76373059ab315f31ca216be (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
40
41
42
43
44
45
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  configobj,
  pytestCheckHook,
  pyyaml,
  setuptools,
  sphinx,
}:

buildPythonPackage rec {
  pname = "everett";
  version = "3.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "willkg";
    repo = "everett";
    tag = "v${version}";
    hash = "sha256-olYxUbsKaL7C5UTAPwW+EufjbWbbHZdZcQ/lfogNJrg=";
  };

  build-system = [ setuptools ];

  dependencies = [
    configobj
    pyyaml
  ];

  nativeCheckInputs = [
    pytestCheckHook
    sphinx
  ];

  pythonImportsCheck = [ "everett" ];

  meta = {
    description = "Python configuration library for your app";
    homepage = "https://github.com/willkg/everett";
    changelog = "https://github.com/willkg/everett/releases/tag/${version}";
    license = lib.licenses.mpl20;
    maintainers = with lib.maintainers; [ jherland ];
  };
}