MithicSpirit b50e89f410
python3Packages.oddsprout: 0.1.1 -> 0.1.2
Also adds `oddsprout` as an application.
2025-01-27 14:57:57 -05:00

49 lines
947 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
pythonOlder,
dahlia,
ixia,
}:
buildPythonPackage rec {
pname = "oddsprout";
version = "0.1.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "trag1c";
repo = "oddsprout";
tag = "v${version}";
hash = "sha256-RfAU3/Je3aC8JjQ51DqRCSAIfW2tQmQPP6G0/bfa1ZE=";
};
build-system = [ hatchling ];
dependencies = [
dahlia
ixia
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "oddsprout" ];
meta = with lib; {
changelog = "https://github.com/trag1c/oddsprout/blob/${src.rev}/CHANGELOG.md";
description = "Generate random JSON with no schemas involved";
license = licenses.mit;
homepage = "https://trag1c.github.io/oddsprout";
maintainers = with maintainers; [
itepastra
sigmanificient
];
mainProgram = "oddsprout";
};
}