biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / craft-cli / default.nix
blob16fdbf181583dc2e9704df128311f4ae7f74e4bd
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   nix-update-script,
6   platformdirs,
7   pyyaml,
8   setuptools-scm,
9   pytest-check,
10   pytest-mock,
11   pytestCheckHook,
14 buildPythonPackage rec {
15   pname = "craft-cli";
16   version = "2.7.0";
18   pyproject = true;
20   src = fetchFromGitHub {
21     owner = "canonical";
22     repo = "craft-cli";
23     rev = "refs/tags/${version}";
24     hash = "sha256-PNurNP0ghG/R0rcUc5GfuPM5PTt+9FbJRjs61YJ1ytc=";
25   };
27   postPatch = ''
28     substituteInPlace pyproject.toml \
29       --replace-fail "setuptools==70.1.0" "setuptools"
30   '';
32   build-system = [ setuptools-scm ];
34   dependencies = [
35     platformdirs
36     pyyaml
37   ];
39   pythonImportsCheck = [ "craft_cli" ];
41   nativeCheckInputs = [
42     pytest-check
43     pytest-mock
44     pytestCheckHook
45   ];
47   pytestFlagsArray = [ "tests/unit" ];
49   passthru.updateScript = nix-update-script { };
51   meta = {
52     description = "CLI builder for Canonical's CLI Guidelines";
53     homepage = "https://github.com/canonical/craft-cli";
54     changelog = "https://github.com/canonical/craft-cli/releases/tag/${version}";
55     license = lib.licenses.lgpl3Only;
56     maintainers = with lib.maintainers; [ jnsgruk ];
57     platforms = lib.platforms.linux;
58   };