1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 hatchling, 8}: 9 10buildPythonPackage rec { 11 pname = "hatch-nodejs-version"; 12 version = "0.4.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "agoose77"; 19 repo = "hatch-nodejs-version"; 20 tag = "v${version}"; 21 hash = "sha256-Oe07HFzhhnAGTWM51xSgRmpJgIZg0oMIxkmMxKRPMwI="; 22 }; 23 24 propagatedBuildInputs = [ hatchling ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "hatch_nodejs_version" ]; 29 30 meta = with lib; { 31 description = "Plugins for dealing with NodeJS versions"; 32 homepage = "https://github.com/agoose77/hatch-nodejs-version"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ cpcloud ]; 35 }; 36}