Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 83 lines 1.6 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 poetry-core, 8 poetry-dynamic-versioning, 9 10 # dependencies 11 docstring-parser, 12 typing-extensions, 13 14 # optional-dependencies 15 tomli, 16 tomli-w, 17 pyyaml, 18 19 # tests 20 matplotlib, 21 numpy, 22 orion, 23 pytest-benchmark, 24 pytest-regressions, 25 pytestCheckHook, 26}: 27 28buildPythonPackage rec { 29 pname = "simple-parsing"; 30 version = "0.1.6"; 31 pyproject = true; 32 33 src = fetchFromGitHub { 34 owner = "lebrice"; 35 repo = "SimpleParsing"; 36 rev = "refs/tags/v${version}"; 37 hash = "sha256-RDS1sWzaQqXp/0a7dXlUHnd6z+GTIpUN1MnUCTI9LGw="; 38 }; 39 40 build-system = [ 41 poetry-core 42 poetry-dynamic-versioning 43 ]; 44 45 dependencies = [ 46 docstring-parser 47 typing-extensions 48 ]; 49 50 optional-dependencies = { 51 toml = [ 52 tomli 53 tomli-w 54 ]; 55 yaml = [ pyyaml ]; 56 }; 57 58 pythonImportsCheck = [ "simple_parsing" ]; 59 60 nativeCheckInputs = [ 61 matplotlib 62 numpy 63 orion 64 pytest-benchmark 65 pytest-regressions 66 pytestCheckHook 67 ]; 68 69 disabledTests = [ 70 # Expected: OrderedDict([('a', 1), ('b', 2), ('c', 5), ('d', 6), ('e', 7)]) 71 # Got: OrderedDict({'a': 1, 'b': 2, 'c': 5, 'd': 6, 'e': 7}) 72 # https://github.com/lebrice/SimpleParsing/issues/326 73 "simple_parsing.utils.dict_union" 74 ]; 75 76 meta = { 77 description = "Simple, Elegant, Typed Argument Parsing with argparse"; 78 changelog = "https://github.com/lebrice/SimpleParsing/releases/tag/v${version}"; 79 homepage = "https://github.com/lebrice/SimpleParsing"; 80 license = lib.licenses.mit; 81 maintainers = with lib.maintainers; [ GaetanLepage ]; 82 }; 83}