diff --git a/pkgs/development/python-modules/hatch-nodejs-version/default.nix b/pkgs/development/python-modules/hatch-nodejs-version/default.nix new file mode 100644 index 000000000000..6ea42ce65fb7 --- /dev/null +++ b/pkgs/development/python-modules/hatch-nodejs-version/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, hatchling +}: + +buildPythonPackage rec { + pname = "hatch-nodejs-version"; + version = "0.3.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "agoose77"; + repo = "hatch-nodejs-version"; + rev = "v${version}"; + sha256 = "sha256-TBvqXjka8poQ8xxQ/H1hFYRLqnP1024uan1d9b95ags="; + }; + + nativeBuildInputs = [ + hatchling + ]; + + propagatedBuildInputs = [ + hatchling + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "hatch_nodejs_version" + ]; + + meta = with lib; { + description = "Plugins for dealing with NodeJS versions."; + homepage = "https://github.com/agoose77/hatch-nodejs-version"; + license = licenses.mit; + maintainers = with maintainers; [ cpcloud ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aa8e9c9cfc35..386b7f7fedbb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4137,6 +4137,8 @@ in { hatch-vcs = callPackage ../development/python-modules/hatch-vcs { }; + hatch-nodejs-version = callPackage ../development/python-modules/hatch-nodejs-version { }; + haversine = callPackage ../development/python-modules/haversine { }; hawkauthlib = callPackage ../development/python-modules/hawkauthlib { };