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