Merge pull request #152287 from fabaff/bump-yamlfix
python3Packages.yamlfix: 0.7.2 -> 0.8.0
This commit is contained in:
commit
05cd6acff4
1 changed files with 29 additions and 10 deletions
|
@ -1,34 +1,53 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pytest-xdist
|
{ lib
|
||||||
, pythonOlder, click, ruyaml }:
|
, buildPythonPackage
|
||||||
|
, click
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest-xdist
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, ruyaml
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "yamlfix";
|
pname = "yamlfix";
|
||||||
version = "0.7.2";
|
version = "0.8.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
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 = version;
|
||||||
sha256 = "sha256-qlA6TyLkOuTXCdMnpfkyN/HDIRfB6+0pQ7f0GCsIjL4=";
|
sha256 = "sha256-Gkq80YMeiPy7xxLauA/nloW4znMV2tfE+e24HyZgUaQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ click ruyaml ];
|
propagatedBuildInputs = [
|
||||||
|
click
|
||||||
|
ruyaml
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook pytest-xdist ];
|
checkInputs = [
|
||||||
|
pytest-xdist
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace 'python_paths = "."' ""
|
--replace 'python_paths = "."' ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [ "-n" "$NIX_BUILD_CORES" ];
|
pytestFlagsArray = [
|
||||||
|
"-n"
|
||||||
|
"$NIX_BUILD_CORES"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "yamlfix" ];
|
pythonImportsCheck = [
|
||||||
|
"yamlfix"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description =
|
description = "Python YAML formatter that keeps your comments";
|
||||||
"A simple opinionated yaml formatter that keeps your comments!";
|
|
||||||
homepage = "https://github.com/lyz-code/yamlfix";
|
homepage = "https://github.com/lyz-code/yamlfix";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ koozz ];
|
maintainers = with maintainers; [ koozz ];
|
||||||
|
|
Loading…
Reference in a new issue