skjold: 0.4.1 -> 0.6.1
Changelog: https://github.com/twu/skjold/releases/tag/v0.6.1
This commit is contained in:
parent
b966b6feb5
commit
cfb2f8e38e
|
@ -1,53 +1,54 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, python3
|
, python3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
let
|
||||||
|
py = python3.override {
|
||||||
|
packageOverrides = self: super: {
|
||||||
|
packaging = super.packaging.overridePythonAttrs (oldAttrs: rec {
|
||||||
|
version = "21.3";
|
||||||
|
src = oldAttrs.src.override {
|
||||||
|
inherit version;
|
||||||
|
hash = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = with python3.pkgs; [ setuptools ];
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [ pyparsing six ];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
with py.pkgs;
|
||||||
|
|
||||||
|
buildPythonApplication rec {
|
||||||
pname = "skjold";
|
pname = "skjold";
|
||||||
version = "0.4.1";
|
version = "0.6.1";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "twu";
|
owner = "twu";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-xz6N7/LS3wOymh9tet8OLgsSaretzuMU4hQd+LeUPJ4=";
|
hash = "sha256-rsdstzNZvokYfTjEyPrWR+0SJpf9wL0HAesq8+A+tPY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python3.pkgs; [
|
nativeBuildInputs = with py.pkgs; [
|
||||||
poetry-core
|
poetry-core
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with py.pkgs; [
|
||||||
click
|
click
|
||||||
packaging
|
packaging
|
||||||
pyyaml
|
pyyaml
|
||||||
toml
|
toml
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = with python3.pkgs; [
|
nativeCheckInputs = with py.pkgs; [
|
||||||
pytest-mock
|
pytest-mock
|
||||||
pytest-watch
|
pytest-watch
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Switch to poetry-core, https://github.com/twu/skjold/pull/91
|
|
||||||
(fetchpatch {
|
|
||||||
name = "switch-poetry-core.patch";
|
|
||||||
url = "https://github.com/twu/skjold/commit/b341748c9b11798b6a5182d659a651b0f200c6f5.patch";
|
|
||||||
sha256 = "sha256-FTZTbIudO6lYO9tLD4Lh1h5zsTeKYtflR2tbbHZ5auM=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace 'packaging = "^21.0"' 'packaging = "*"' \
|
|
||||||
--replace 'pyyaml = "^5.3"' 'pyyaml = "*"'
|
|
||||||
'';
|
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# Too sensitive to pass
|
# Too sensitive to pass
|
||||||
"tests/test_cli.py"
|
"tests/test_cli.py"
|
||||||
|
@ -73,6 +74,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tool to Python dependencies against security advisory databases";
|
description = "Tool to Python dependencies against security advisory databases";
|
||||||
homepage = "https://github.com/twu/skjold";
|
homepage = "https://github.com/twu/skjold";
|
||||||
|
changelog = "https://github.com/twu/skjold/releases/tag/v${version}";
|
||||||
license = with licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue