Unverified Commit 721ceb9b authored by toonn's avatar toonn Committed by GitHub
Browse files

dosage: 2.17 -> 3.0 (#346046)

parents 8ff1957e 21bc39e8
Loading
Loading
Loading
Loading
+28 −7
Original line number Diff line number Diff line
{ lib, python3Packages, fetchPypi }:
{
  lib,
  python3Packages,
  fetchPypi,
}:

python3Packages.buildPythonApplication rec {
  pname = "dosage";
  version = "2.17";
  version = "3.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0vmxgn9wd3j80hp4gr5iq06jrl4gryz5zgfdd2ah30d12sfcfig0";
    sha256 = "sha256-mHV/U9Vqv7fSsLYNrCXckkJ1YpsccLd8HsJ78IwLX0Y=";
  };

  pyproject = true;

  nativeCheckInputs = with python3Packages; [
    pytestCheckHook pytest-xdist responses
    pytestCheckHook
    pytest-xdist
    responses
  ];

  nativeBuildInputs = with python3Packages; [ setuptools-scm ];
  build-system = [ python3Packages.setuptools-scm ];

  dependencies = with python3Packages; [
    colorama
    imagesize
    lxml
    requests
    six
    platformdirs
  ];

  propagatedBuildInputs = with python3Packages; [
    colorama imagesize lxml requests setuptools six
  disabledTests = [
    # need network connect to api.github.com
    "test_update_available"
    "test_no_update_available"
    "test_update_broken"
    "test_current"
  ];

  meta = {