ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / development / python-modules / craft-cli / default.nix
blob5438683cd99512c7ac37cb94b7a70d0d25a560e3
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.10.1";
18   pyproject = true;
20   src = fetchFromGitHub {
21     owner = "canonical";
22     repo = "craft-cli";
23     rev = "refs/tags/${version}";
24     hash = "sha256-XKRV5VJLC3B5gcNr/icOxWB6pDXDT7MV5wM/vEQHVm4=";
25   };
27   postPatch = ''
28     substituteInPlace pyproject.toml \
29       --replace-fail "setuptools==75.2.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   };