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