Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 948 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 loguru, 6 platformdirs, 7 pydantic, 8 pytestCheckHook, 9 setuptools, 10 typer, 11 typing-extensions, 12}: 13 14buildPythonPackage rec { 15 pname = "maison"; 16 version = "2.0.2"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "dbatten5"; 21 repo = "maison"; 22 tag = "v${version}"; 23 hash = "sha256-F0mxOeLFDCiPhhKaaUy4qV//Pb2JXCtOLNB1uW2KWZY="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 loguru 30 platformdirs 31 typer 32 typing-extensions 33 ]; 34 35 checkInputs = [ 36 pydantic 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ "maison" ]; 41 42 meta = with lib; { 43 description = "Library to read settings from config files"; 44 homepage = "https://github.com/dbatten5/maison"; 45 changelog = "https://github.com/dbatten5/maison/releases/tag/${src.tag}"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ fab ]; 48 mainProgram = "maison"; 49 }; 50}