1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatch-vcs,
6 hatchling,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "apipkg";
12 version = "3.0.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "pytest-dev";
17 repo = "apipkg";
18 tag = "v${version}";
19 hash = "sha256-ANLD7fUMKN3RmAVjVkcpwUH6U9ASalXdwKtPpoC8Urs=";
20 };
21
22 build-system = [
23 hatch-vcs
24 hatchling
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 enabledTestPaths = [ "test_apipkg.py" ];
30
31 pythonImportsCheck = [ "apipkg" ];
32
33 meta = with lib; {
34 changelog = "https://github.com/pytest-dev/apipkg/blob/main/CHANGELOG";
35 description = "Namespace control and lazy-import mechanism";
36 homepage = "https://github.com/pytest-dev/apipkg";
37 license = licenses.mit;
38 maintainers = [ ];
39 };
40}