Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / apipkg / default.nix
blobb37c1b11fe6feed2908ecaf7a7055d67cf4bb0b0
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , hatch-vcs
5 , hatchling
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "apipkg";
11   version = "3.0.2";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "pytest-dev";
16     repo = pname;
17     rev = "refs/tags/v${version}";
18     hash = "sha256-ANLD7fUMKN3RmAVjVkcpwUH6U9ASalXdwKtPpoC8Urs=";
19   };
21   nativeBuildInputs = [
22     hatch-vcs
23     hatchling
24   ];
26   nativeCheckInputs = [
27     pytestCheckHook
28   ];
30   pytestFlagsArray = [
31     "test_apipkg.py"
32   ];
34   pythonImportsCheck = [
35     "apipkg"
36   ];
38   meta = with lib; {
39     changelog = "https://github.com/pytest-dev/apipkg/blob/main/CHANGELOG";
40     description = "Namespace control and lazy-import mechanism";
41     homepage = "https://github.com/pytest-dev/apipkg";
42     license = licenses.mit;
43     maintainers = with maintainers; [ ];
44   };