Files
nixpkgs/pkgs/development/python-modules/oddsprout/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
945 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 = {
changelog = "https://github.com/trag1c/oddsprout/blob/${src.rev}/CHANGELOG.md";
description = "Generate random JSON with no schemas involved";
license = lib.licenses.mit;
homepage = "https://trag1c.github.io/oddsprout";
maintainers = with lib.maintainers; [
itepastra
sigmanificient
];
mainProgram = "oddsprout";
};
}