python312Packages.simple-parsing: init at 0.1.6
This commit is contained in:
parent
6b045549f1
commit
6b95f30743
83
pkgs/development/python-modules/simple-parsing/default.nix
Normal file
83
pkgs/development/python-modules/simple-parsing/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -14166,6 +14166,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
simber = callPackage ../development/python-modules/simber { };
|
simber = callPackage ../development/python-modules/simber { };
|
||||||
|
|
||||||
|
simple-parsing = callPackage ../development/python-modules/simple-parsing { };
|
||||||
|
|
||||||
simple-term-menu = callPackage ../development/python-modules/simple-term-menu { };
|
simple-term-menu = callPackage ../development/python-modules/simple-term-menu { };
|
||||||
|
|
||||||
simpleaudio = callPackage ../development/python-modules/simpleaudio { };
|
simpleaudio = callPackage ../development/python-modules/simpleaudio { };
|
||||||
|
Loading…
Reference in New Issue
Block a user