1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

python312Packages.simple-parsing: init at 0.1.6 (#340127)

This commit is contained in:
Sandro 2024-09-11 14:14:23 +02:00 committed by GitHub
commit 6a22539afb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 85 additions and 0 deletions

View file

@ -0,0 +1,83 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
poetry-dynamic-versioning,
# dependencies
docstring-parser,
typing-extensions,
# optional-dependencies
tomli,
tomli-w,
pyyaml,
# tests
matplotlib,
numpy,
orion,
pytest-benchmark,
pytest-regressions,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "simple-parsing";
version = "0.1.6";
pyproject = true;
src = fetchFromGitHub {
owner = "lebrice";
repo = "SimpleParsing";
rev = "refs/tags/v${version}";
hash = "sha256-RDS1sWzaQqXp/0a7dXlUHnd6z+GTIpUN1MnUCTI9LGw=";
};
build-system = [
poetry-core
poetry-dynamic-versioning
];
dependencies = [
docstring-parser
typing-extensions
];
optional-dependencies = {
toml = [
tomli
tomli-w
];
yaml = [ pyyaml ];
};
pythonImportsCheck = [ "simple_parsing" ];
nativeCheckInputs = [
matplotlib
numpy
orion
pytest-benchmark
pytest-regressions
pytestCheckHook
];
disabledTests = [
# Expected: OrderedDict([('a', 1), ('b', 2), ('c', 5), ('d', 6), ('e', 7)])
# Got: OrderedDict({'a': 1, 'b': 2, 'c': 5, 'd': 6, 'e': 7})
# https://github.com/lebrice/SimpleParsing/issues/326
"simple_parsing.utils.dict_union"
];
meta = {
description = "Simple, Elegant, Typed Argument Parsing with argparse";
changelog = "https://github.com/lebrice/SimpleParsing/releases/tag/v${version}";
homepage = "https://github.com/lebrice/SimpleParsing";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}

View file

@ -14180,6 +14180,8 @@ self: super: with self; {
simber = callPackage ../development/python-modules/simber { };
simple-parsing = callPackage ../development/python-modules/simple-parsing { };
simple-term-menu = callPackage ../development/python-modules/simple-term-menu { };
simpleaudio = callPackage ../development/python-modules/simpleaudio { };