Merge pull request #154338 from fabaff/bump-sqlfluff

sqlfluff: 0.9.0 -> 0.9.1
This commit is contained in:
Fabian Affolter 2022-01-11 09:01:26 +01:00 committed by GitHub
commit ce3312635d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 19 deletions

View File

@ -1,21 +1,25 @@
{ buildPythonPackage { lib
, buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, lib
# pythonPackages # pythonPackages
, pytest , pytestCheckHook
, pythonOlder
, pyyaml , pyyaml
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "oyaml"; pname = "oyaml";
version = "1.0"; version = "unstable-2021-12-03";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wimglenn"; owner = "wimglenn";
repo = "oyaml"; repo = "oyaml";
rev = "v${version}"; rev = "d0195070d26bd982f1e4e604bded5510dd035cd7";
sha256 = "0qkj8g87drvjqiqqmz36gyqiczdfcfv8zk96kkifzk4f9dl5f02j"; hash = "sha256-1rSEhiULlAweLDqUFX+JBFxe3iW9kNlRA2zjcG8MYSg=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -23,19 +27,17 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
]; ];
checkPhase = '' pythonImportsCheck = [
pytest test_oyaml.py "oyaml"
''; ];
meta = { meta = with lib; {
description = "Ordered YAML: drop-in replacement for PyYAML which preserves dict ordering"; description = "Drop-in replacement for PyYAML which preserves dict ordering";
homepage = "https://github.com/wimglenn/oyaml"; homepage = "https://github.com/wimglenn/oyaml";
license = lib.licenses.mit; license = licenses.mit;
maintainers = with lib.maintainers; [ maintainers = with maintainers; [ kamadorueda ];
kamadorueda
];
}; };
} }

View File

@ -5,13 +5,13 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "sqlfluff"; pname = "sqlfluff";
version = "0.9.0"; version = "0.9.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-AxK5pRuNkhJokuuv/5/ZJxZ2J9d6XLFPZJWQfq9baaU="; hash = "sha256-sA9iMTDQ7SjaRG0/Uy+wGQ/2yQDqbZP6M5r1lFLBex4=";
}; };
propagatedBuildInputs = with python3.pkgs; [ propagatedBuildInputs = with python3.pkgs; [