Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 889 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, hatch-vcs 5, hatchling 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "apipkg"; 11 version = "3.0.1"; 12 format = "pyproject"; 13 14 src = fetchFromGitHub { 15 owner = "pytest-dev"; 16 repo = pname; 17 rev = "v${version}"; 18 hash = "sha256-gf84SzfuKLGYfI88IzPRJCqMZWwowUR10FgIbwXjwuY="; 19 }; 20 21 SETUPTOOLS_SCM_PRETEND_VERSION = version; 22 23 nativeBuildInputs = [ 24 hatch-vcs 25 hatchling 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 ]; 31 32 pytestFlagsArray = [ 33 "test_apipkg.py" 34 ]; 35 36 pythonImportsCheck = [ 37 "apipkg" 38 ]; 39 40 meta = with lib; { 41 changelog = "https://github.com/pytest-dev/apipkg/blob/main/CHANGELOG"; 42 description = "Namespace control and lazy-import mechanism"; 43 homepage = "https://github.com/pytest-dev/apipkg"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ ]; 46 }; 47}