Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, buildPythonPackage, fetchFromGitHub, hatch-vcs, hatchling, pytestCheckHook,}:
buildPythonPackage rec { pname = "apipkg"; version = "3.0.2"; pyproject = true;
src = fetchFromGitHub { owner = "pytest-dev"; repo = "apipkg"; tag = "v${version}"; hash = "sha256-ANLD7fUMKN3RmAVjVkcpwUH6U9ASalXdwKtPpoC8Urs="; };
# support pytest 9: https://github.com/pytest-dev/apipkg/pull/58 postPatch = '' substituteInPlace conftest.py \ --replace-fail 'def pytest_report_header(startdir):' 'def pytest_report_header():' '';
build-system = [ hatch-vcs hatchling ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "test_apipkg.py" ];
pythonImportsCheck = [ "apipkg" ];
meta = { changelog = "https://github.com/pytest-dev/apipkg/blob/main/CHANGELOG"; description = "Namespace control and lazy-import mechanism"; homepage = "https://github.com/pytest-dev/apipkg"; license = lib.licenses.mit; maintainers = [ ]; };}