1{ lib
2, buildPythonPackage
3, click
4, fetchFromGitHub
5, poetry-core
6, pydantic
7, pytestCheckHook
8, pythonOlder
9, toml
10}:
11
12buildPythonPackage rec {
13 pname = "maison";
14 version = "1.4.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "dbatten5";
21 repo = "maison";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-uJW+7+cIt+jnbiC+HvT7KzyNk1enEtELTxtfc4eXAPU=";
24 };
25
26 nativeBuildInputs = [
27 poetry-core
28 ];
29
30 propagatedBuildInputs = [
31 click
32 pydantic
33 toml
34 ];
35
36 checkInputs = [
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [
41 "maison"
42 ];
43
44 meta = with lib; {
45 description = "Library to read settings from config files";
46 homepage = "https://github.com/dbatten5/maison";
47 changelog = "https://github.com/dbatten5/maison/releases/tag/v${version}";
48 license = licenses.mit;
49 maintainers = with maintainers; [ fab ];
50 };
51}