Merge pull request #211934 from fabaff/yamlfix-fix
python310Packages.yamlfix: 0.8.2 -> 1.5.0
This commit is contained in:
commit
9fc39a81c2
51
pkgs/development/python-modules/maison/default.nix
Normal file
51
pkgs/development/python-modules/maison/default.nix
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, click
|
||||||
|
, fetchFromGitHub
|
||||||
|
, poetry-core
|
||||||
|
, pydantic
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, toml
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "maison";
|
||||||
|
version = "1.4.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "dbatten5";
|
||||||
|
repo = pname;
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-Ny/n1vDWS6eA9zLIB0os5zrbwvutb+7sQ6iPXeid1M0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
click
|
||||||
|
pydantic
|
||||||
|
toml
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"maison"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Library to read settings from config files";
|
||||||
|
homepage = "https://github.com/dbatten5/maison";
|
||||||
|
changelog = "https://github.com/dbatten5/maison/releases/tag/v${version}";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -2,28 +2,37 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, click
|
, click
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, maison
|
||||||
|
, pdm-pep517
|
||||||
, pytest-xdist
|
, pytest-xdist
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, ruyaml
|
, ruyaml
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "yamlfix";
|
pname = "yamlfix";
|
||||||
version = "0.8.2";
|
version = "1.5.0";
|
||||||
format = "setuptools";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lyz-code";
|
owner = "lyz-code";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "sha256-YCC4xK1fB5Gyv32JhbSuejtzLNMRnH7iyUpzccVijS0=";
|
hash = "sha256-TdW2vVj5wZw8xANSRY8ke1ECw8UTDwRjJDD1g+p9DV4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
pdm-pep517
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
click
|
click
|
||||||
|
maison
|
||||||
ruyaml
|
ruyaml
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -32,11 +41,6 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace 'python_paths = "."' ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"yamlfix"
|
"yamlfix"
|
||||||
];
|
];
|
||||||
@ -44,7 +48,8 @@ buildPythonPackage rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python YAML formatter that keeps your comments";
|
description = "Python YAML formatter that keeps your comments";
|
||||||
homepage = "https://github.com/lyz-code/yamlfix";
|
homepage = "https://github.com/lyz-code/yamlfix";
|
||||||
license = licenses.gpl3Plus;
|
changelog = "https://github.com/lyz-code/yamlfix/blob/${version}/CHANGELOG.md";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ koozz ];
|
maintainers = with maintainers; [ koozz ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -5610,6 +5610,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
mailsuite = callPackage ../development/python-modules/mailsuite { };
|
mailsuite = callPackage ../development/python-modules/mailsuite { };
|
||||||
|
|
||||||
|
maison = callPackage ../development/python-modules/maison { };
|
||||||
|
|
||||||
Mako = callPackage ../development/python-modules/Mako { };
|
Mako = callPackage ../development/python-modules/Mako { };
|
||||||
|
|
||||||
malduck= callPackage ../development/python-modules/malduck { };
|
malduck= callPackage ../development/python-modules/malduck { };
|
||||||
|
Loading…
Reference in New Issue
Block a user