Skip to content

Commit

Permalink
python39Packages.ruamel-yaml: normalise name, adopt
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Nov 2, 2021
1 parent e91d495 commit b2767b6
Show file tree
Hide file tree
Showing 31 changed files with 61 additions and 66 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/Nikola/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
, pytestCheckHook
, pythonOlder
, requests
, ruamel_yaml
, ruamel-yaml
, stdenv
, toml
, typogrify
Expand Down Expand Up @@ -75,7 +75,7 @@ buildPythonPackage rec {
pyphen
PyRSS2Gen
requests
ruamel_yaml
ruamel-yaml
toml
typogrify
unidecode
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/conda/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, fetchPypi
, pycosat
, requests
, ruamel_yaml
, ruamel-yaml
, isPy3k
, enum34
}:
Expand All @@ -20,7 +20,7 @@ buildPythonPackage rec {
sha256 = "a91ef821343dea3ba9670f3d10b36c1ace4f4c36d70c175d8fc8886e94285953";
};

propagatedBuildInputs = [ pycosat requests ruamel_yaml ] ++ lib.optional (!isPy3k) enum34;
propagatedBuildInputs = [ pycosat requests ruamel-yaml ] ++ lib.optional (!isPy3k) enum34;

# No tests
doCheck = false;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/construct/2.10.54.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
, six, pytestCheckHook, pytest-benchmark, enum34, numpy, arrow, ruamel_yaml
, six, pytestCheckHook, pytest-benchmark, enum34, numpy, arrow, ruamel-yaml
}:

buildPythonPackage rec {
Expand All @@ -14,7 +14,7 @@ buildPythonPackage rec {
sha256 = "1mqspsn6bf3ibvih1zna2glkg8iw7vy5zg9gzg0d1m8zcndk2c48";
};

checkInputs = [ pytestCheckHook pytest-benchmark enum34 numpy arrow ruamel_yaml ];
checkInputs = [ pytestCheckHook pytest-benchmark enum34 numpy arrow ruamel-yaml ];

disabledTests = lib.optionals stdenv.isDarwin [ "test_multiprocessing" ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/construct/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
, six, pytestCheckHook, pytest-benchmark, numpy, arrow, ruamel_yaml
, six, pytestCheckHook, pytest-benchmark, numpy, arrow, ruamel-yaml
, lz4, cloudpickle
}:

Expand All @@ -22,7 +22,7 @@ buildPythonPackage rec {
lz4
];

checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel_yaml cloudpickle ];
checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel-yaml cloudpickle ];

disabledTests = lib.optionals stdenv.isDarwin [ "test_multiprocessing" ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/dateparser/0.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
, convertdate
, umalqurra
, jdatetime
, ruamel_yaml
, ruamel-yaml
}:

buildPythonPackage rec {
Expand Down Expand Up @@ -41,7 +41,7 @@ buildPythonPackage rec {
# install_requires
python-dateutil pytz regex tzlocal
# extra_requires
convertdate umalqurra jdatetime ruamel_yaml
convertdate umalqurra jdatetime ruamel-yaml
];

pythonImportsCheck = [ "dateparser" ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/dateparser/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
, parameterized
, pytestCheckHook
, GitPython
, ruamel_yaml
, ruamel-yaml
}:

buildPythonPackage rec {
Expand All @@ -41,7 +41,7 @@ buildPythonPackage rec {
parameterized
pytestCheckHook
GitPython
ruamel_yaml
ruamel-yaml
];

preCheck = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/drf-yasg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, buildPythonPackage
, fetchPypi
, inflection
, ruamel_yaml
, ruamel-yaml
, setuptools-scm
, six
, coreapi
Expand Down Expand Up @@ -33,7 +33,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
six
inflection
ruamel_yaml
ruamel-yaml
coreapi
djangorestframework
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/jc/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, ruamel_yaml
, ruamel-yaml
, xmltodict
, pygments
, pytestCheckHook
Expand All @@ -20,7 +20,7 @@ buildPythonPackage rec {
sha256 = "sha256-ISggj6oOF0B7TKIQAlZtauRrDAWP88OOFezLJK6edjI=";
};

propagatedBuildInputs = [ ruamel_yaml xmltodict pygments ];
propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ];

checkInputs = [ pytestCheckHook ];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, pkgs-docker
, python-json-logger
, pyyaml
, ruamel_yaml
, ruamel-yaml
, semver
, toml
, traitlets
Expand All @@ -27,7 +27,7 @@ buildPythonPackage rec {
jinja2
pkgs-docker
python-json-logger
ruamel_yaml
ruamel-yaml
semver
toml
traitlets
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/jupyter-telemetry/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, pythonOlder
, python-json-logger
, jsonschema
, ruamel_yaml
, ruamel-yaml
, traitlets
}:

Expand All @@ -19,7 +19,7 @@ buildPythonPackage rec {
};

propagatedBuildInputs = [
python-json-logger jsonschema ruamel_yaml traitlets
python-json-logger jsonschema ruamel-yaml traitlets
];

meta = with lib; {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/mautrix/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, aiohttp, pythonOlder
, sqlalchemy, ruamel_yaml, CommonMark, lxml
, sqlalchemy, ruamel-yaml, CommonMark, lxml
}:

buildPythonPackage rec {
Expand All @@ -16,7 +16,7 @@ buildPythonPackage rec {

# defined in optional-requirements.txt
sqlalchemy
ruamel_yaml
ruamel-yaml
CommonMark
lxml
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/maya/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, fetchPypi, fetchpatch, buildPythonPackage
, dateparser, humanize, pendulum, ruamel_yaml, tzlocal }:
, dateparser, humanize, pendulum, ruamel-yaml, tzlocal }:

buildPythonPackage rec {
pname = "maya";
Expand All @@ -19,7 +19,7 @@ buildPythonPackage rec {
})
];

propagatedBuildInputs = [ dateparser humanize pendulum ruamel_yaml tzlocal ];
propagatedBuildInputs = [ dateparser humanize pendulum ruamel-yaml tzlocal ];

# No tests
doCheck = false;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/mitmproxy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
, pyopenssl
, pyparsing
, pyperclip
, ruamel_yaml
, ruamel-yaml
, setuptools
, sortedcontainers
, tornado
Expand Down Expand Up @@ -78,7 +78,7 @@ buildPythonPackage rec {
pyopenssl
pyparsing
pyperclip
ruamel_yaml
ruamel-yaml
sortedcontainers
tornado
urwid
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/monty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
, pandas
, pydantic
, pymongo
, ruamel_yaml
, ruamel-yaml
, tqdm
}:

Expand All @@ -30,7 +30,7 @@ buildPythonPackage rec {
'';

propagatedBuildInputs = [
ruamel_yaml
ruamel-yaml
tqdm
msgpack
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/ntc-templates/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, poetry-core
, textfsm
, pytestCheckHook
, ruamel_yaml
, ruamel-yaml
, yamllint
}:

Expand All @@ -32,7 +32,7 @@ buildPythonPackage rec {

checkInputs = [
pytestCheckHook
ruamel_yaml
ruamel-yaml
yamllint
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/prance/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, fetchFromGitHub
, chardet
, requests
, ruamel_yaml
, ruamel-yaml
, six
, semver
, pytestCheckHook
Expand All @@ -25,7 +25,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
chardet
requests
ruamel_yaml
ruamel-yaml
six
semver
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pre-commit-hooks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, git
, pythonOlder
, pytestCheckHook
, ruamel_yaml
, ruamel-yaml
, toml
}:

Expand All @@ -21,7 +21,7 @@ buildPythonPackage rec {
};

propagatedBuildInputs = [
ruamel_yaml
ruamel-yaml
toml
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pymatgen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
, plotly
, pydispatcher
, requests
, ruamel_yaml
, ruamel-yaml
, scipy
, six
, spglib
Expand Down Expand Up @@ -41,7 +41,7 @@ buildPythonPackage rec {
plotly
pydispatcher
requests
ruamel_yaml
ruamel-yaml
scipy
six
spglib
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/python-box/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, pytestCheckHook
, pythonOlder
, pyyaml
, ruamel_yaml
, ruamel-yaml
, toml
}:

Expand All @@ -24,7 +24,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
msgpack
pyyaml
ruamel_yaml
ruamel-yaml
toml
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pyuavcan/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, numpy, nunavut
, pyserial , pytest, ruamel_yaml}:
, pyserial , pytest, ruamel-yaml}:

buildPythonPackage rec {
pname = "pyuavcan";
Expand All @@ -18,7 +18,7 @@
nunavut
pyserial
pytest
ruamel_yaml
ruamel-yaml
];

# allow for writable directory for darwin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
}:

buildPythonPackage rec {
pname = "ruamel.yaml";
pname = "ruamel-yaml";
version = "0.16.13";

src = fetchPypi {
inherit pname version;
pname = "ruamel.yaml";
inherit version;
sha256 = "0hm9yg785f46bkrgqknd6fdvmkby9dpzjnm0b63qf0i748acaj5v";
};

Expand All @@ -26,10 +27,7 @@ buildPythonPackage rec {

# causes namespace clash on py27
dontUsePythonImportsCheck = isPy27;
pythonImportsCheck = [
"ruamel.yaml"
"ruamel.base"
];
pythonImportsCheck = [ "ruamel.yaml" ];

meta = with lib; {
description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order";
Expand Down
Loading

0 comments on commit b2767b6

Please sign in to comment.