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