Unverified Commit c2924cef authored by natsukium's avatar natsukium
Browse files
parent 217bf120
Loading
Loading
Loading
Loading
+23 −11
Original line number Diff line number Diff line
@@ -6,55 +6,67 @@
  setuptools,
  setuptools-scm,
  pytest-check,
  pytest-httpx,
  pytest-mock,
  pydantic,
  pyyaml,
  pytestCheckHook,
  keyring_24,
  annotated-types,
  httpx,
  jaraco-classes,
  keyring,
  macaroonbakery,
  overrides,
  pydantic,
  pyxdg,
  requests,
  requests-toolbelt,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "craft-store";
  version = "3.0.2";
  version = "3.1.0";

  pyproject = true;

  src = fetchFromGitHub {
    owner = "canonical";
    repo = "craft-store";
    rev = "refs/tags/${version}";
    hash = "sha256-l8WnuaMJN4/nZRkWoU6omgbd4hKR2m7YC+YVcvAqzcA=";
    tag = version;
    hash = "sha256-pTG0JJRoHjmcLg+lAgg53rvC+7d3TLlTLe+Rxhy8wqg=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "setuptools==" "setuptools>="
      --replace-fail "setuptools==75.6.0" "setuptools"
  '';

  build-system = [ setuptools-scm ];
  build-system = [
    setuptools
    setuptools-scm
  ];

  pythonRelaxDeps = [ "httpx" ];

  dependencies = [
    keyring_24
    annotated-types
    httpx
    jaraco-classes
    keyring
    macaroonbakery
    overrides
    pydantic
    pyxdg
    requests
    requests-toolbelt
    typing-extensions
  ];

  pythonRelaxDeps = [ "macaroonbakery" ];

  pythonImportsCheck = [ "craft_store" ];

  nativeCheckInputs = [
    pydantic
    pytest-check
    pytest-httpx
    pytest-mock
    pytestCheckHook
    pyyaml