1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatch-vcs, 6 hatchling, 7 pytestCheckHook, 8 build, 9}: 10 11buildPythonPackage rec { 12 pname = "hatch-autorun"; 13 version = "1.1.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "ofek"; 18 repo = "hatch-autorun"; 19 tag = "v${version}"; 20 hash = "sha256-79k3KolvmjGf8ubCQMhtOH5+OeqQrmz2Q6r0ZG98424="; 21 }; 22 23 build-system = [ 24 hatch-vcs 25 hatchling 26 ]; 27 28 dependencies = [ 29 hatchling 30 ]; 31 32 pythonImportsCheck = [ 33 "hatch_autorun" 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 build 39 ]; 40 41 disabledTestPaths = [ 42 # requires network via invoking pip 43 "tests/test_build.py" 44 ]; 45 46 meta = { 47 description = "Hatch build hook plugin to inject code that will automatically run"; 48 homepage = "https://github.com/ofek/hatch-autorun"; 49 license = lib.licenses.mit; 50 maintainers = with lib.maintainers; [ pbsds ]; 51 }; 52}