summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/maison/default.nix
blob: fc73d5435d473cec4230328692150ce1ef574e0c (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
46
47
48
49
50
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  loguru,
  platformdirs,
  pydantic,
  pytestCheckHook,
  setuptools,
  typer,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "maison";
  version = "2.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dbatten5";
    repo = "maison";
    tag = "v${version}";
    hash = "sha256-F0mxOeLFDCiPhhKaaUy4qV//Pb2JXCtOLNB1uW2KWZY=";
  };

  build-system = [ setuptools ];

  dependencies = [
    loguru
    platformdirs
    typer
    typing-extensions
  ];

  checkInputs = [
    pydantic
    pytestCheckHook
  ];

  pythonImportsCheck = [ "maison" ];

  meta = {
    description = "Library to read settings from config files";
    homepage = "https://github.com/dbatten5/maison";
    changelog = "https://github.com/dbatten5/maison/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "maison";
  };
}