Merge pull request #182823 from onny/omegaconf
This commit is contained in:
commit
03eb7c5bff
3 changed files with 84 additions and 6 deletions
|
@ -1,5 +1,13 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, pytest-mock, pytestCheckHook
|
{ lib
|
||||||
, pyyaml, pythonOlder, jre_minimal, antlr4_9-python3-runtime }:
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
|
, pyyaml
|
||||||
|
, pythonOlder
|
||||||
|
, jre_minimal
|
||||||
|
, antlr4_9-python3-runtime
|
||||||
|
, pydevd }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "omegaconf";
|
pname = "omegaconf";
|
||||||
|
@ -18,11 +26,22 @@ buildPythonPackage rec {
|
||||||
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"]' 'setup_requires=[]'
|
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"]' 'setup_requires=[]'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook pytest-mock ];
|
nativeBuildInputs = [
|
||||||
nativeBuildInputs = [ jre_minimal ];
|
jre_minimal
|
||||||
propagatedBuildInputs = [ antlr4_9-python3-runtime pyyaml ];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [ "tests/test_pydev_resolver_plugin.py" ]; # needs pydevd - not in Nixpkgs
|
propagatedBuildInputs = [
|
||||||
|
antlr4_9-python3-runtime
|
||||||
|
pyyaml
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pydevd
|
||||||
|
pytestCheckHook
|
||||||
|
pytest-mock
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "omegaconf" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A framework for configuring complex applications";
|
description = "A framework for configuring complex applications";
|
||||||
|
|
57
pkgs/development/python-modules/pydevd/default.nix
Normal file
57
pkgs/development/python-modules/pydevd/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, buildPythonPackage
|
||||||
|
, pytestCheckHook
|
||||||
|
, untangle
|
||||||
|
, psutil
|
||||||
|
, trio
|
||||||
|
, numpy
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pydevd";
|
||||||
|
version = "2.8.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "fabioz";
|
||||||
|
repo = "PyDev.Debugger";
|
||||||
|
rev = "pydev_debugger_${lib.replaceStrings ["."] ["_"] version}";
|
||||||
|
sha256 = "sha256-+yRngN10654trB09ZZa8QQsTPdM7VxVj7r6jh7OcgAA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
numpy
|
||||||
|
psutil
|
||||||
|
pytestCheckHook
|
||||||
|
trio
|
||||||
|
untangle
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Require network connection
|
||||||
|
"test_completion_sockets_and_messages"
|
||||||
|
"test_path_translation"
|
||||||
|
"test_attach_to_pid_no_threads"
|
||||||
|
"test_attach_to_pid_halted"
|
||||||
|
"test_remote_debugger_threads"
|
||||||
|
"test_path_translation_and_source_reference"
|
||||||
|
"test_attach_to_pid"
|
||||||
|
"test_terminate"
|
||||||
|
"test_gui_event_loop_custom"
|
||||||
|
# AssertionError: assert '/usr/bin/' == '/usr/bin'
|
||||||
|
# https://github.com/fabioz/PyDev.Debugger/issues/227
|
||||||
|
"test_to_server_and_to_client"
|
||||||
|
# AssertionError pydevd_tracing.set_trace_to_threads(tracing_func) == 0
|
||||||
|
"test_tracing_other_threads"
|
||||||
|
"test_tracing_basic"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pydevd" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "PyDev.Debugger (used in PyDev, PyCharm and VSCode Python)";
|
||||||
|
homepage = "https://github.com/fabioz/PyDev.Debugger";
|
||||||
|
license = licenses.epl10;
|
||||||
|
maintainers = with maintainers; [ onny ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7355,6 +7355,8 @@ in {
|
||||||
|
|
||||||
pydevccu = callPackage ../development/python-modules/pydevccu { };
|
pydevccu = callPackage ../development/python-modules/pydevccu { };
|
||||||
|
|
||||||
|
pydevd = callPackage ../development/python-modules/pydevd { };
|
||||||
|
|
||||||
pydexcom = callPackage ../development/python-modules/pydexcom { };
|
pydexcom = callPackage ../development/python-modules/pydexcom { };
|
||||||
|
|
||||||
pydicom = callPackage ../development/python-modules/pydicom { };
|
pydicom = callPackage ../development/python-modules/pydicom { };
|
||||||
|
|
Loading…
Reference in a new issue