Unverified Commit 1b1dbc70 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #313662 from fabaff/skjold-fix

skjold: 0.6.1 -> 0.6.2
parents 4894e34d 40b9116d
Loading
Loading
Loading
Loading
+18 −34
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, python3
{
  lib,
  fetchFromGitHub,
  python3,
}:

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 {
python3.pkgs.buildPythonApplication rec {
  pname = "skjold";
  version = "0.6.1";
  format = "pyproject";
  version = "0.6.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "twu";
    repo = pname;
    repo = "skjold";
    rev = "refs/tags/v${version}";
    hash = "sha256-rsdstzNZvokYfTjEyPrWR+0SJpf9wL0HAesq8+A+tPY=";
    hash = "sha256-/ltaRs2WZXbrG3cVez+QIwupJrsV550TjOALbHX9Z0I=";
  };

  nativeBuildInputs = with py.pkgs; [
    poetry-core
  ];
  pythonRelaxDeps = [ "packaging" ];

  build-system = with python3.pkgs; [ poetry-core ];

  propagatedBuildInputs = with py.pkgs; [
  nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ];

  dependencies = with python3.pkgs; [
    click
    packaging
    pyyaml
    toml
  ];

  nativeCheckInputs = with py.pkgs; [
  nativeCheckInputs = with python3.pkgs; [
    pytest-mock
    pytest-watch
    pytestCheckHook
@@ -67,15 +53,13 @@ buildPythonApplication rec {
    "urllib3"
  ];

  pythonImportsCheck = [
    "skjold"
  ];
  pythonImportsCheck = [ "skjold" ];

  meta = with lib; {
    description = "Tool to Python dependencies against security advisory databases";
    homepage = "https://github.com/twu/skjold";
    changelog = "https://github.com/twu/skjold/releases/tag/v${version}";
    license = with licenses; [ mit ];
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}