1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pytestCheckHook, 7 pythonOlder, 8 dahlia, 9 ixia, 10}: 11 12buildPythonPackage rec { 13 pname = "oddsprout"; 14 version = "0.1.2"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "trag1c"; 21 repo = "oddsprout"; 22 tag = "v${version}"; 23 hash = "sha256-RfAU3/Je3aC8JjQ51DqRCSAIfW2tQmQPP6G0/bfa1ZE="; 24 }; 25 26 build-system = [ hatchling ]; 27 28 dependencies = [ 29 dahlia 30 ixia 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "oddsprout" ]; 36 37 meta = with lib; { 38 changelog = "https://github.com/trag1c/oddsprout/blob/${src.rev}/CHANGELOG.md"; 39 description = "Generate random JSON with no schemas involved"; 40 license = licenses.mit; 41 homepage = "https://trag1c.github.io/oddsprout"; 42 maintainers = with maintainers; [ 43 itepastra 44 sigmanificient 45 ]; 46 mainProgram = "oddsprout"; 47 }; 48}