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